cmake install stuff!

This commit is contained in:
Lily Tsuru 2024-02-02 06:39:42 -05:00
parent 29492db1ed
commit 67a38d45e5
1 changed files with 15 additions and 1 deletions

View File

@ -35,4 +35,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}
)