-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
30 lines (20 loc) · 886 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
cmake_minimum_required(VERSION 2.8.3)
project(gameboy_ros)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wno-deprecated-declarations -Werror=return-type")
find_package(catkin_simple REQUIRED)
# Build Gearboy
set(GEARBOY_INCLUDES external/Gearboy/src external/Gearboy/src/audio external/Gearboy/src/miniz)
include_directories(${GEARBOY_INCLUDES})
file(GLOB GEARBOY_MAIN external/Gearboy/src/*.cpp)
file(GLOB GEARBOY_AUDIO external/Gearboy/src/audio/*.cpp)
file(GLOB GEARBOY_MINIZ external/Gearboy/src/miniz/*.cpp)
add_library(gearboy ${GEARBOY_MAIN} ${GEARBOY_AUDIO} ${GEARBOY_MINIZ})
target_link_libraries(gearboy SDL2 GLEW GLU GL)
include_directories(include)
catkin_simple()
# Build ROS Node
cs_add_executable(gameboy_node src/joy_monitor.cpp src/main.cpp src/node.cpp)
target_link_libraries(gameboy_node gearboy)
# Catkin simple stuff
cs_install()
cs_export()