From 2a066760056a2a65015d49a4f78b8c349a145ea3 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Tue, 4 Dec 2018 14:11:21 +0100 Subject: build: add install rules --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3