Compare commits

...

2 Commits

Author SHA1 Message Date
Lily Tsuru a00fd8247e update readme, v0.1 bump 2024-02-02 06:41:46 -05:00
Lily Tsuru 67a38d45e5 cmake install stuff! 2024-02-02 06:39:42 -05:00
2 changed files with 22 additions and 2 deletions

View File

@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.15)
project(nanosm
LANGUAGES CXX
VERSION 0.1
)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
@ -35,4 +36,18 @@ target_link_libraries(nanosm PRIVATE
nanosm_target(nanosm)
# todo: cmake install sex
# cmake install stuff
include(GNUInstallDirs)
# doc files
install(FILES
${PROJECT_SOURCE_DIR}/LICENSE
${PROJECT_SOURCE_DIR}/doc/nanosm.toml
DESTINATION ${CMAKE_INSTALL_DOCDIR}
)
install(TARGETS nanosm
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

View File

@ -14,7 +14,12 @@ A more robust solution that's still small and easy to setup (read: Not written i
# Installation
Requirements:
- A C++20 compiler (GCC 13 known to work, whatever clang version probably works too)
```bash
$ git clone --recursive https://git.crustywindo.ws/modeco80/nanosm
$ cd nanosm
$ cmake -Wno-dev -GNinja -Bbuild -DCMAKE_INSTALL_PREFIX=/usr
$ ninja -C build
# ninja -C build install
@ -22,5 +27,5 @@ $ ninja -C build
# Configuration
- Copy `/usr/share/doc/nanosm/nanosm.toml` to `~/.config/nanosm/` and edit it to your liking.
- Copy `/usr/share/doc/nanosm/nanosm.toml` to `~/.config/nanosm/` and edit it to your liking/setup.
- Add `exec nanosm` to the end of your `.xinitrc`.