-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (31 loc) · 1.16 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
cmake_minimum_required( VERSION 2.8 )
project(MeshLogger)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules/")
find_package(Pangolin 0.1 REQUIRED)
find_package(SceneGraph 0.1 REQUIRED)
find_package(HAL 0.1 REQUIRED)
find_package(Protobuf REQUIRED)
find_package(Calibu 0.1 REQUIRED)
find_package(OpenCV2 REQUIRED)
include_directories(${Pangolin_INCLUDE_DIRS})
include_directories(${SceneGraph_INCLUDE_DIRS})
include_directories(${HAL_INCLUDE_DIRS})
include_directories(${PROTOBUF_INCLUDE_DIRS})
include_directories(${Calibu_INCLUDE_DIRS})
include_directories(${OpenCV2_INCLUDE_DIRS})
link_directories(${HAL_LINK_DIRS})
link_directories(${Pangolin_LIBRARY_DIRS})
list(APPEND HDRS)
list(APPEND SRCS
MeshLogger.cpp
)
add_executable(MeshLogger ${HDRS} ${SRCS})
target_link_libraries(MeshLogger
${Pangolin_LIBRARIES}
${SceneGraph_LIBRARIES}
${HAL_LIBRARIES}
${PROTOBUF_LIBRARIES}
${Calibu_LIBRARY}
${OpenCV2_LIBRARIES}
)