-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
65 lines (50 loc) · 1.16 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(oculus_ros)
## 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
roscpp
roslib
geometry_msgs
tf
)
# Oculus SDK
FIND_PACKAGE(OculusSDK REQUIRED)
include_directories(${OculusSDK_INCLUDE_DIRS})
link_directories(${OculusSDK_LIBRARY_DIRS})
# OpenCV
find_package( OpenCV REQUIRED )
catkin_package(
# INCLUDE_DIRS include
# LIBRARIES oculus_ros
CATKIN_DEPENDS roscpp tf geometry_msgs
DEPENDS OculusSDK
)
###########
## Build ##
###########
# include_directories(include)
include_directories(
${catkin_INCLUDE_DIRS}
)
# sensor
add_executable(oculus_node
src/oculus_rift.h
src/oculus_rift.cpp
src/oculus_node.cpp)
target_link_libraries(oculus_node
${catkin_LIBRARIES}
${OculusSDK_LIBRARIES})
# viewer
add_executable(oculus_viewer_node
src/oculus_shader.h
src/oculus_shader.cpp
src/oculus_viewer_node.cpp
shader/oculus.v.glsl
shader/oculus.f.glsl)
target_link_libraries(oculus_viewer_node
${catkin_LIBRARIES}
${OculusSDK_LIBRARIES}
${OpenCV_LIBS}
glut GLEW)