aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFelix Morgner <fmorgner@hsr.ch>2018-12-04 14:11:21 +0100
committerFelix Morgner <fmorgner@hsr.ch>2018-12-04 14:11:21 +0100
commit2a066760056a2a65015d49a4f78b8c349a145ea3 (patch)
tree498b42f82df737766e341494024d55ed75aa8508 /CMakeLists.txt
parent63ec195c36dc331cd77df721d45449a642e8a546 (diff)
downloadwanda-2a066760056a2a65015d49a4f78b8c349a145ea3.tar.xz
wanda-2a066760056a2a65015d49a4f78b8c349a145ea3.zip
build: add install rules
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4b70c60..2057910 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,6 +50,8 @@ set(WANDA_CORE_LIBRARIES
add_library("core" ${WANDA_CORE_SOURCES} ${WANDA_CORE_HEADERS})
target_link_libraries("core" ${WANDA_CORE_LIBRARIES})
+set_target_properties("core" PROPERTIES PUBLIC_HEADER "${WANDA_CORE_HEADERS}")
+install(TARGETS "core" ARCHIVE DESTINATION "lib" PUBLIC_HEADER DESTINATION "include")
##### Wanda Daemon #####
@@ -76,6 +78,7 @@ set(WANDA_DAEMON_LIBRARIES
add_executable("wandad" ${WANDA_DAEMON_SOURCES} ${WANDA_DAEMON_HEADERS})
target_link_libraries("wandad" ${WANDA_DAEMON_LIBRARIES})
+install(TARGETS "wandad" RUNTIME DESTINATION "bin")
##### Wanda Controller #####
@@ -94,4 +97,5 @@ set(WANDA_CONTROLLER_LIBRARIES
)
add_executable("wandac" ${WANDA_CONTROLLER_SOURCES} ${WANDA_CONTROLLER_HEADERS})
-target_link_libraries("wandac" ${WANDA_CONTROLLER_LIBRARIES}) \ No newline at end of file
+target_link_libraries("wandac" ${WANDA_CONTROLLER_LIBRARIES})
+install(TARGETS "wandac" RUNTIME DESTINATION "bin")