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