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