-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
53 lines (41 loc) · 896 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
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(InterPoseLib)
set(CMAKE_CXX_COMPILER g++)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++14 -O2")
set(Pangolin_DIR ./ThirdParty/Pangolin/build/src/)
find_package(Pangolin REQUIRED)
include_directories(
./src
./viewer
${Pangolin_INCLUDE_DIRS}
./ThirdParty/eigen
)
link_directories(
${Pangolin_LIBRARY_DIRS}
)
add_library(
${PROJECT_NAME} STATIC
src/InterPose.cc
src/Utils.hpp
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/build/bin)
# Build InterPoseViewer
add_executable(
exampleInterPoseViewer
viewer/exampleInterPoseViewer.cc
viewer/Viewer.cc
)
target_link_libraries(
exampleInterPoseViewer
${PROJECT_NAME}
${Pangolin_LIBRARIES}
)
# Build example InterPose
add_executable(
exampleInterPose
exampleInterPose.cc
)
target_link_libraries(
exampleInterPose
${PROJECT_NAME}
)