-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
58 lines (49 loc) · 1.74 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
cmake_minimum_required(VERSION 2.8.3)
project(emsgc)
find_package(catkin_simple REQUIRED)
catkin_simple(ALL_DEPS_REQUIRED)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O3")
find_package(OpenCV REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(gsl REQUIRED gsl)
###########
## Build ##
###########
## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(include
third-party/gco
third-party/delaunator/include
${OpenCV_INCLUDE_DIRS})
set(HEADERS
include/emsgc/core/event_motion_segmentation.h
include/emsgc/core/image_warped_events.h
include/emsgc/core/numerical_deriv.h
include/emsgc/core/contrastFunctor.h
include/emsgc/container/EventQueueMat.h
include/emsgc/container/EventMRF.h
include/emsgc/container/PerspectiveCamera.h
include/emsgc/tools/utils.h
include/emsgc/tools/TicToc.h
third-party/gco/energy.h
third-party/gco/block.h
third-party/gco/GCoptimization.h
third-party/gco/graph.h
third-party/gco/LinkedBlockList.h
third-party/delaunator/include/delaunator.hpp)
set(SOURCES
src/container/PerspectiveCamera.cpp
src/core/event_motion_segmentation.cpp
src/core/image_warped_events.cpp
src/core/optim_contrast_gsl.cpp
src/core/numerical_deriv.cpp
src/core/optimizeLabels.cpp
src/core/optimizeModels.cpp
third-party/gco/GCoptimization.cpp
third-party/gco/graph.cpp
third-party/gco/LinkedBlockList.cpp
third-party/gco/maxflow.cpp)
cs_add_library(${PROJECT_NAME}_LIB ${HEADERS} ${SOURCES})
## Node
cs_add_executable(emsgc_main emsgc_main.cpp)
target_link_libraries(emsgc_main ${PROJECT_NAME}_LIB ${catkin_LIBRARIES} ${OpenCV_LIBRARIES} yaml-cpp ${gsl_LIBRARIES})