-
Notifications
You must be signed in to change notification settings - Fork 17
/
CMakeLists.txt
41 lines (34 loc) · 920 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
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 2.8.3)
project(ethzasl_apriltag2)
find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
add_definitions("-fPIC -O3")
find_package(Threads)
if ("!${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
# The clang compiler (on osx) is somehow much more strict
# than the compilers on ubuntu and so this does not seem
# possible on OSX just yet.
add_definitions( -Werror )
endif()
#############
# LIBRARIES #
#############
file(GLOB SOURCE_FILES "src/*.cc")
cs_add_library(${PROJECT_NAME}
${SOURCE_FILES}
)
target_link_libraries(${PROJECT_NAME} ${catkin_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
############
# EXAMPLES #
############
if(NOT APPLE)
cs_add_executable(apriltags_demo
src/example/apriltags_demo.cpp src/example/Serial.cpp
)
target_link_libraries(apriltags_demo ${PROJECT_NAME} v4l2)
endif()
##########
# EXPORT #
##########
cs_install()
cs_export()