-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
69 lines (53 loc) · 2.03 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
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 2.8.3)
project(bassbot)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
sensor_msgs
message_generation
sound_play
)
find_package(Threads REQUIRED)
find_package(ALSA REQUIRED)
find_package(Boost REQUIRED COMPONENTS system)
add_message_files(
FILES
MidiNote.msg
CallFoundNotification.msg
Note.msg
)
generate_messages(
DEPENDENCIES
std_msgs
)
catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS message_runtime
)
include_directories(include)
include_directories(SYSTEM ${catkin_INCLUDE_DIRS})
include_directories(SYSTEM RtMidi)
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
add_library(RtMidi RtMidi/RtMidi.cpp)
target_link_libraries(RtMidi ${CMAKE_THREAD_LIBS_INIT} ${ALSA_LIBRARIES})
set_target_properties(RtMidi PROPERTIES COMPILE_FLAGS "-D__LINUX_ALSA__")
add_executable(MIDIListener src/MIDIListener.cpp)
target_link_libraries(MIDIListener ${catkin_LIBRARIES} RtMidi)
add_dependencies(MIDIListener bassbot_generate_messages_cpp)
add_executable(CallFinder src/CallFinder.cpp src/PatternUtilities.cpp)
target_link_libraries(CallFinder ${catkin_LIBRARIES})
add_dependencies(CallFinder bassbot_generate_messages_cpp)
add_executable(ResponsePlayer src/ResponsePlayer.cpp src/PatternUtilities.cpp)
target_link_libraries(ResponsePlayer ${catkin_LIBRARIES})
add_dependencies(ResponsePlayer bassbot_generate_messages_cpp)
add_executable(RobotInterface src/RobotInterface.cpp src/SerialPort.cpp)
target_link_libraries(RobotInterface ${catkin_LIBRARIES} ${Boost_LIBRARIES})
add_dependencies(RobotInterface bassbot_generate_messages_cpp)
add_executable(SynthInterface src/SynthInterface.cpp)
target_link_libraries(SynthInterface ${catkin_LIBRARIES})
add_dependencies(SynthInterface bassbot_generate_messages_cpp)
add_executable(ArduinoCommDelayTimer src/ArduinoCommDelayTimer.cpp src/SerialPort.cpp)
target_link_libraries(ArduinoCommDelayTimer ${Boost_LIBRARIES})
add_dependencies(ArduinoCommDelayTimer bassbot_generate_messages_cpp)