message(STATUS "Building deploy_tool") file(GLOB CPPS "*.cpp") file(GLOB HDRS "*.h") add_executable(deploy_tool ${CPPS} ${HDRS}) target_link_libraries(deploy_tool pip) if (DEFINED LIB) install(TARGETS deploy_tool DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) else() install(TARGETS deploy_tool DESTINATION bin) endif()