forked from ConradKent/ohr_refresh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
55 lines (46 loc) · 1.41 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
cmake_minimum_required(VERSION 3.0.2)
project(ohr_refresh)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## 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
gazebo_plugins
gazebo_ros
roscpp
)
find_library(OPENVR_LIBRARY openvr_api HINTS /usr/local/lib/)
find_package (gazebo REQUIRED)
find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLEW REQUIRED)
find_package(GLUT REQUIRED)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS gazebo_plugins gazebo_ros roscpp
)
###########
## Build ##
###########
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
link_directories(${GAZEBO_LIBRARY_DIRS})
include_directories(include)
include_directories( ${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIR}
${GAZEBO_INCLUDE_DIRS}
${GLEW_LIBRARIES}
${GLUT_LIBRARIES}
${SDL2_LIBRARIES}
${OPENVR_INCLUDE_DIR}
)
add_library(ohr_refresh_plugin src/ohr_refresh_plugin.cpp)
target_link_libraries( ohr_refresh_plugin
${catkin_LIBRARIES}
${GAZEBO_LIBRARIES}
${GLEW_LIBRARIES}
${GLUT_LIBRARIES}
${SDL2_LIBRARIES}
${OPENVR_LIBRARY}
CameraPlugin
)