diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f9a9179..bb997686 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -565,8 +565,9 @@ if(LIB) else() if(NOT PIP_FREERTOS) install(TARGETS ${PIP_LIBS_TARGETS} DESTINATION bin) - install(FILES ${HDRS} DESTINATION include) - message(STATUS "Install ${PROJECT_NAME} to local \"bin\"") + install(TARGETS ${PIP_LIBS_TARGETS} DESTINATION lib) + install(FILES ${HDRS} DESTINATION include/pip) + message(STATUS "Install ${PROJECT_NAME} to local \"bin\", \"lib\" and \"include\"") endif() endif() diff --git a/utils/code_model_generator/CMakeLists.txt b/utils/code_model_generator/CMakeLists.txt index ce5e6282..4b04d1b8 100755 --- a/utils/code_model_generator/CMakeLists.txt +++ b/utils/code_model_generator/CMakeLists.txt @@ -3,4 +3,6 @@ add_executable(pip_cmg "main.cpp") target_link_libraries(pip_cmg pip) if (DEFINED LIB) install(TARGETS pip_cmg DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) -endif () +else() + install(TARGETS pip_cmg DESTINATION bin) +endif() diff --git a/utils/crypt_tool/CMakeLists.txt b/utils/crypt_tool/CMakeLists.txt index 17a03f8a..302631d0 100644 --- a/utils/crypt_tool/CMakeLists.txt +++ b/utils/crypt_tool/CMakeLists.txt @@ -3,4 +3,6 @@ add_executable(picrypt "main.cpp") target_link_libraries(picrypt pip pip_crypt) if (DEFINED LIB) install(TARGETS picrypt DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) -endif () +else() + install(TARGETS picrypt DESTINATION bin) +endif() diff --git a/utils/resources_compiler/CMakeLists.txt b/utils/resources_compiler/CMakeLists.txt index 50f1b1eb..84a014c0 100644 --- a/utils/resources_compiler/CMakeLists.txt +++ b/utils/resources_compiler/CMakeLists.txt @@ -6,4 +6,6 @@ set (PIRC_LIBS pip) target_link_libraries(pip_rc ${PIRC_LIBS}) if (DEFINED LIB) install(TARGETS pip_rc DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) -endif () +else() + install(TARGETS pip_rc DESTINATION bin) +endif() diff --git a/utils/system_daemon/CMakeLists.txt b/utils/system_daemon/CMakeLists.txt index fa506b4b..1eb58c6f 100755 --- a/utils/system_daemon/CMakeLists.txt +++ b/utils/system_daemon/CMakeLists.txt @@ -5,4 +5,6 @@ add_executable(pisd ${CPPS} ${HDRS}) target_link_libraries(pisd pip pip_crypt) if (DEFINED LIB) install(TARGETS pisd DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) -endif () +else() + install(TARGETS pisd DESTINATION bin) +endif() diff --git a/utils/udp_file_transfer/CMakeLists.txt b/utils/udp_file_transfer/CMakeLists.txt index c7cf3e8c..6333c33a 100644 --- a/utils/udp_file_transfer/CMakeLists.txt +++ b/utils/udp_file_transfer/CMakeLists.txt @@ -3,4 +3,6 @@ add_executable(pift "main.cpp") target_link_libraries(pift pip) if (DEFINED LIB) install(TARGETS pift DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) -endif () +else() + install(TARGETS pift DESTINATION bin) +endif()