blob: 009eb92d53374a545a590255a1de4be93e89aaca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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}"
)
|