-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (40 loc) · 1.24 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
cmake_minimum_required(VERSION 3.0.2)
project(openvx_ros_camera)
find_package(catkin REQUIRED COMPONENTS
cv_bridge
image_transport
roscpp
roscpp
rospy
sensor_msgs
std_msgs
)
set(CMAKE_CXX_STANDARD 11)
find_package(OpenCV 3.3.1 REQUIRED)
#include_directories("/home/arjun/OpenVX-sample-impl/install/Linux/x64/Debug/include")
set(OPENVX_INCLUDES "/home/arjun/OpenVX-sample-impl/install/Linux/x64/Debug/include" ${OPENVX_INCLUDES})
set(OPENVX_LIBRARIES "/home/arjun/OpenVX-sample-impl/install/Linux/x64/Debug/bin/libopenvx.so" ${OPENVX_LIBRARIES})
if(DEFINED OPENVX_INCLUDES)
message(STATUS "OPENVX_INCLUDES: \t${OPENVX_INCLUDES}")
include_directories(${OPENVX_INCLUDES})
else()
message(STATUS "OPENVX_INCLUDES: \t<empty>")
endif()
if(DEFINED OPENVX_LIBRARIES)
message(STATUS "OPENVX_LIBRARIES: \t${OPENVX_LIBRARIES}")
else()
message(STATUS "OPENVX_LIBRARIES: \t<empty>")
endif()
catkin_package()
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_executable(cameraproc src/camera_test.cpp)
target_link_libraries(cameraproc
${catkin_LIBRARIES}
${OPENVX_LIBRARIES}
${OpenCV_LIBRARIES}
)