forked from futureneer/openni2-tracker
-
Notifications
You must be signed in to change notification settings - Fork 20
/
CMakeLists.txt
61 lines (51 loc) · 1.64 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
55
56
57
58
59
60
61
cmake_minimum_required(VERSION 2.8.3)
project(skeleton_tracker)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
cv_bridge
geometry_msgs
image_transport
kdl_conversions
openni2_camera
pcl_conversions
pcl_ros
roscpp
roslib
tf
message_generation
)
#find_package(opencv REQUIRED)
include_directories(
include
${catkin_INCLUDE_DIRS}
)
add_message_files(
FILES
user_IDs.msg
)
generate_messages(
DEPENDENCIES geometry_msgs
)
catkin_package(
INCLUDE_DIRS include
LIBRARIES skeleton_tracker
CATKIN_DEPENDS cv_bridge geometry_msgs image_transport kdl_conversions openni2_camera pcl_conversions pcl_ros roscpp roslib tf message_runtime
DEPENDS system_lib opencv
)
set(OPENNI2_DIR ~/OpenNI2)
set(OPENNI2_WRAPPER /opt/ros/indigo/include/openni2_camera/)
set(NITE2_DIR ~/Openni2/NiTE-2.0.0/)
set(NITE2_LIB ~/Openni2/NiTE-2.0.0/Redist/libNiTE2.so)
link_directories(${OPENNI2_DIR}/Bin/x64-Release)
include_directories(${OPENNI2_DIR}/Bin/x64-Release)
include_directories(/usr/include/openni2/)
include_directories(${OPENNI2_DIR}/Include)
include_directories(${OPENNI2_WRAPPER})
include_directories(${NITE2_DIR}/Include)
include_directories(${OpenCV_INCLUDE_DIRS}/include)
add_executable(xtion_tracker src/xtion_tracker_node.cpp)
target_link_libraries(xtion_tracker OpenNI2 ${NITE2_LIB} ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})
add_executable(skeleton_tracker src/skeleton_tracker_node.cpp)
target_link_libraries(skeleton_tracker OpenNI2 ${NITE2_LIB} ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})