From 6ac2633c37db6bc4b8a2d87b4e02455521667e3d Mon Sep 17 00:00:00 2001 From: Alex 'AdUser' Z Date: Thu, 21 Apr 2016 16:48:02 +1000 Subject: [PATCH] * cmake: install target for f2bc --- src/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 7a9ccb0..0a8da81 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,9 +10,12 @@ endif () add_executable("f2b" ${SOURCES}) target_link_libraries(f2b "dl") +install(TARGETS "f2b" RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/sbin") + if (WITH_CLIENT) set(SOURCES "strlcpy.c" "log.c" "client.c" "cmsg.c" "commands.c" "csocket.c") add_executable("f2bc" ${SOURCES}) + install(TARGETS "f2bc" RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") endif () set(SOURCES "strlcpy.c" "backend-test.c" "log.c" "config.c" "backend.c") @@ -23,8 +26,5 @@ set(SOURCES "strlcpy.c" "filter-test.c" "log.c" "config.c" "filter.c") add_executable("filter-test" ${SOURCES}) target_link_libraries("filter-test" "dl") -install(TARGETS f2b - RUNTIME DESTINATION "${CMAKE_INSTALL_PREFIX}/bin") - add_subdirectory("backends") add_subdirectory("filters")