cmake_minimum_required(VERSION 2.8) project( helloworld_proj ) # Dependencies find_package(OpenCV REQUIRED) message("-- OpenCV version: ${OpenCV_VERSION}") find_package(RSC REQUIRED) message("-- RSC version: ${RSC_VERSION}") set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${RSC_CMAKE_MODULE_PATH}") find_package(RSB REQUIRED) message("-- RSB version: ${RSB_VERSION}") add_definitions(${RSB_CFLAGS} ${RSB_PROTOCOL_CFLAGS}) find_package(RST COMPONENTS sandbox REQUIRED) message("-- RST version: ${RST_VERSION}") message("-- RST_CFLAGS: ${RST_CFLAGS}") add_definitions(${RST_CFLAGS} ${RSTSANDBOX_CFLAGS}) include_directories(${RSB_INCLUDE_DIRS} ${RSC_INCLUDE_DIRS} ${RST_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS}) add_executable(helloworld helloworld.cpp) target_link_libraries(helloworld ${RSC_LIBRARIES} ${RSB_LIBRARIES} ${RST_LIBRARIES} ${Boost_LIBRARIES} ${OpenCV_LIBS})