diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt new file mode 100644 index 0000000..009eb92 --- /dev/null +++ b/src/CMakeLists.txt @@ -0,0 +1,17 @@ +include_directories( + ${CMAKE_SOURCE_DIR}/include + ${CMAKE_BINARY_DIR}/include +) + +add_executable(spm spm.c config.c compat.c deps.c fs.c rpath.c find.c shell.c archive.c strings.c relocation.c install.c config_global.c) +target_link_libraries(spm rt) +install( + TARGETS spm + DESTINATION ${CMAKE_INSTALL_PREFIX}/bin +) +install( + FILES + ${CMAKE_BINARY_DIR}/include/config.h + ${CMAKE_SOURCE_DIR}/include/spm.h + DESTINATION "${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME}" +) |