CMakeLists.txt
1 |
cmake_minimum_required(VERSION 2.8) |
---|---|
2 |
|
3 |
project( helloworld_proj ) |
4 |
|
5 |
# Dependencies |
6 |
find_package(OpenCV REQUIRED) |
7 |
message("-- OpenCV version: ${OpenCV_VERSION}") |
8 |
|
9 |
find_package(RSC REQUIRED) |
10 |
message("-- RSC version: ${RSC_VERSION}") |
11 |
set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH}" "${RSC_CMAKE_MODULE_PATH}") |
12 |
|
13 |
find_package(RSB REQUIRED) |
14 |
message("-- RSB version: ${RSB_VERSION}") |
15 |
add_definitions(${RSB_CFLAGS} ${RSB_PROTOCOL_CFLAGS}) |
16 |
|
17 |
find_package(RST COMPONENTS sandbox REQUIRED) |
18 |
message("-- RST version: ${RST_VERSION}") |
19 |
message("-- RST_CFLAGS: ${RST_CFLAGS}") |
20 |
add_definitions(${RST_CFLAGS} ${RSTSANDBOX_CFLAGS}) |
21 |
|
22 |
include_directories(${RSB_INCLUDE_DIRS} |
23 |
${RSC_INCLUDE_DIRS} |
24 |
${RST_INCLUDE_DIRS} |
25 |
${OpenCV_INCLUDE_DIRS}) |
26 |
|
27 |
add_executable(helloworld helloworld.cpp) |
28 |
target_link_libraries(helloworld ${RSC_LIBRARIES} |
29 |
${RSB_LIBRARIES} |
30 |
${RST_LIBRARIES} |
31 |
${Boost_LIBRARIES} |
32 |
${OpenCV_LIBS}) |
33 |
|