forked from USC-ACTLab/libobjecttracker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
64 lines (52 loc) · 1.07 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
cmake_minimum_required(VERSION 3.5)
project(librigidbodytracker)
set (CMAKE_CXX_STANDARD 14)
set (CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(PCL REQUIRED)
find_package(PkgConfig)
find_package(Boost 1.58 REQUIRED COMPONENTS program_options)
pkg_check_modules(YamlCpp yaml-cpp)
###########
## Build ##
###########
## Additional include folders
include_directories(
include
${PCL_INCLUDE_DIRS}
)
## Declare a cpp library
add_library(librigidbodytracker
src/rigid_body_tracker.cpp
)
target_link_libraries(librigidbodytracker
${PCL_LIBRARIES}
)
add_executable(playclouds
src/playclouds.cpp
)
target_link_libraries(playclouds
librigidbodytracker
${PCL_LIBRARIES}
yaml-cpp
)
## assignment
# add_executable(assignment
# src/assignment.cpp
# )
# target_link_libraries(assignment
# ${Boost_LIBRARIES}
# )
add_executable(standalone
src/standalone.cpp
)
add_executable(cbs_group_constraint
src/cbs_group_constraint.cpp
)
target_link_libraries(cbs_group_constraint
${Boost_LIBRARIES}
)
target_link_libraries(
standalone
librigidbodytracker
${PCL_LIBRARIES}
)