From 0ecd4dc4771376abb72e433329ace58cd2eedd92 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Tue, 10 Jun 2014 21:32:15 +0000 Subject: [PATCH] Added installation of test/example applications git-svn-id: http://find-object.googlecode.com/svn/trunk/find_object@332 620bd6b2-0a58-f614-fd9a-1bd335dccda9 --- console_app/CMakeLists.txt | 3 +++ example/CMakeLists.txt | 4 ++++ imagesTcpServer/CMakeLists.txt | 4 ++++ tcpClient/CMakeLists.txt | 3 +++ 4 files changed, 14 insertions(+) diff --git a/console_app/CMakeLists.txt b/console_app/CMakeLists.txt index 8d05e4bd..9a9284c3 100644 --- a/console_app/CMakeLists.txt +++ b/console_app/CMakeLists.txt @@ -23,3 +23,6 @@ TARGET_LINK_LIBRARIES(console ${LIBRARIES}) SET_TARGET_PROPERTIES( console PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-console) +INSTALL(TARGETS console + RUNTIME DESTINATION bin COMPONENT runtime + BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index a93f243b..82ab8676 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -42,4 +42,8 @@ TARGET_LINK_LIBRARIES(example ${LIBRARIES}) SET_TARGET_PROPERTIES( example PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-example) + +INSTALL(TARGETS example + RUNTIME DESTINATION bin COMPONENT runtime + BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime) diff --git a/imagesTcpServer/CMakeLists.txt b/imagesTcpServer/CMakeLists.txt index 511fcd29..3f8d6e70 100644 --- a/imagesTcpServer/CMakeLists.txt +++ b/imagesTcpServer/CMakeLists.txt @@ -41,4 +41,8 @@ TARGET_LINK_LIBRARIES(imagesTcpServer ${LIBRARIES}) SET_TARGET_PROPERTIES( imagesTcpServer PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-imagesTcpServer) + +INSTALL(TARGETS imagesTcpServer + RUNTIME DESTINATION bin COMPONENT runtime + BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime) diff --git a/tcpClient/CMakeLists.txt b/tcpClient/CMakeLists.txt index 13b4b801..f81921cb 100644 --- a/tcpClient/CMakeLists.txt +++ b/tcpClient/CMakeLists.txt @@ -35,3 +35,6 @@ TARGET_LINK_LIBRARIES(tcpClient ${LIBRARIES}) SET_TARGET_PROPERTIES( tcpClient PROPERTIES OUTPUT_NAME ${PROJECT_PREFIX}-tcpClient) +INSTALL(TARGETS tcpClient + RUNTIME DESTINATION bin COMPONENT runtime + BUNDLE DESTINATION "${CMAKE_BUNDLE_LOCATION}" COMPONENT runtime) \ No newline at end of file