-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (26 loc) · 1.35 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
cmake_minimum_required ( VERSION 2.6 )
project ( robot-mobile )
# Need threads
find_package ( Threads )
# Also build custom version of raspistill
add_subdirectory ( raspicam )
# Cereal
set ( CEREAL_INCLUDE_FOLDER ../cereal/include CACHE FILEPATH "Cereal include folder" )
# AprilTags
set ( APRILTAG_INCLUDE_FOLDER /usr/local/include/apriltag CACHE FILEPATH "AprilTag include folder" )
# Mobile server
add_executable ( mobile_server ./src/mobile_server.cpp
./src/CameraFetcher.cpp
./src/ImageBuffer.cpp
./src/ImageChecker.cpp
./src/MobileConfiguration.cpp
./src/MobileManager.cpp )
set_property ( TARGET mobile_server PROPERTY CXX_STANDARD 14 )
target_include_directories ( mobile_server PUBLIC ./include
PUBLIC ./raspicam
PUBLIC ../robot-comm/core
PUBLIC ../robot-comm/msgs
PUBLIC ${CEREAL_INCLUDE_FOLDER}
PUBLIC ${APRILTAG_INCLUDE_FOLDER} )
target_link_libraries ( mobile_server raspistill robot-comm ${CMAKE_THREAD_LIBS_INIT} apriltag )
install ( TARGETS mobile_server RUNTIME DESTINATION /usr/bin/ )