diff options
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | include/CMakeLists.txt | 27 | ||||
-rw-r--r-- | scripts/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 6 |
4 files changed, 33 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 692488e..6c9a674 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,3 +8,5 @@ check_symbol_exists(reallocarray stdlib.h HAVE_REALLOCARRAY) configure_file(${CMAKE_SOURCE_DIR}/config.h.in ${CMAKE_BINARY_DIR}/include/config.h) add_subdirectory(src) +add_subdirectory(include) +add_subdirectory(scripts) diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt new file mode 100644 index 0000000..0a3b5b7 --- /dev/null +++ b/include/CMakeLists.txt @@ -0,0 +1,27 @@ +install( + FILES + ${CMAKE_BINARY_DIR}/include/config.h + archive.h + checksum.h + conf.h + deps.h + environment.h + find.h + fs.h + install.h + internal_cmd.h + manifest.h + mime.h + mirrors.h + relocation.h + rpath.h + shell.h + shlib.h + spm.h + str.h + strlist.h + url.h + version_spec.h + + DESTINATION "${CMAKE_INSTALL_PREFIX}/include/${PROJECT_NAME}" +) diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt new file mode 100644 index 0000000..a9dc74a --- /dev/null +++ b/scripts/CMakeLists.txt @@ -0,0 +1,4 @@ +install( + PROGRAMS spmbuild + DESTINATION bin +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b9dc7f7..1f77c94 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -20,9 +20,3 @@ 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}" -) |