Compare commits
2 Commits
29492db1ed
...
a00fd8247e
Author | SHA1 | Date |
---|---|---|
Lily Tsuru | a00fd8247e | |
Lily Tsuru | 67a38d45e5 |
|
@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.15)
|
||||||
|
|
||||||
project(nanosm
|
project(nanosm
|
||||||
LANGUAGES CXX
|
LANGUAGES CXX
|
||||||
|
VERSION 0.1
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
|
||||||
|
@ -35,4 +36,18 @@ target_link_libraries(nanosm PRIVATE
|
||||||
|
|
||||||
nanosm_target(nanosm)
|
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}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,12 @@ A more robust solution that's still small and easy to setup (read: Not written i
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
Requirements:
|
||||||
|
- A C++20 compiler (GCC 13 known to work, whatever clang version probably works too)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
$ git clone --recursive https://git.crustywindo.ws/modeco80/nanosm
|
||||||
|
$ cd nanosm
|
||||||
$ cmake -Wno-dev -GNinja -Bbuild -DCMAKE_INSTALL_PREFIX=/usr
|
$ cmake -Wno-dev -GNinja -Bbuild -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
$ ninja -C build
|
$ ninja -C build
|
||||||
# ninja -C build install
|
# ninja -C build install
|
||||||
|
@ -22,5 +27,5 @@ $ ninja -C build
|
||||||
|
|
||||||
# Configuration
|
# 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`.
|
- Add `exec nanosm` to the end of your `.xinitrc`.
|
||||||
|
|
Loading…
Reference in New Issue