forked from jakeware/skeletontracker_nu
-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
41 lines (32 loc) · 994 Bytes
/
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
cmake_minimum_required(VERSION 2.8.3)
project(skeletontracker_nu)
find_package(orocos_kdl REQUIRED)
find_package(catkin REQUIRED COMPONENTS geometry_msgs
roscpp
roslib
tf
skeletonmsgs_nu)
# Find OpenNI
find_package(PkgConfig)
pkg_check_modules(OpenNI REQUIRED libopenni)
# Find Nite
find_path(Nite_INCLUDEDIR
NAMES XnVNite.h
HINTS /usr/include/nite /usr/local/include/nite)
find_library(Nite_LIBRARY
NAMES XnVNite_1_3_1
HINTS /usr/lib /usr/local/lib
PATH_SUFFIXES lib)
catkin_package()
include_directories(${catkin_INCLUDEDIR}
${OpenNI_INCLUDEDIR}
${Nite_INCLUDEDIR}
${orocos_kdl_INCLUDE_DIRS})
link_directories(${catkin_LIBRARY_DIRS})
link_directories(${orocos_kdl_LIBRARY_DIRS})
add_executable(skeletontracker src/skeletontracker_nu.cpp)
add_dependencies(skeletontracker skeletonmsgs_nu_gencpp)
target_link_libraries(skeletontracker ${catkin_LIBRARIES}
${OpenNI_LIBRARIES}
${Nite_LIBRARY}
${orocos_kdl_LIBRARIES})