From 67a38d45e5d1c684f8e8d8247f5245d5594f3e3f Mon Sep 17 00:00:00 2001 From: modeco80 Date: Fri, 2 Feb 2024 06:39:42 -0500 Subject: [PATCH] cmake install stuff! --- CMakeLists.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9585d7f..bc95744 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} +) +