-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
52 lines (43 loc) · 1.31 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
cmake_minimum_required(VERSION 3.16)
project(mvl-stereo-processor VERSION 1.0.0 LANGUAGES CXX)
include(GNUInstallDirs)
set(CMAKE_AUTOMOC TRUE)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-std=c++11)
endif()
find_package(OpenCV REQUIRED core imgcodecs videoio)
find_package(Qt5Core REQUIRED)
find_package(libmvl_stereo_pipeline 2.1.0 REQUIRED)
find_package(libvrms 1.0.0 QUIET)
if (libvrms_FOUND)
include_directories(${libvrms_INCLUDE_DIRS})
add_definitions(-DENABLE_VRMS)
message(STATUS "Enabling VRMS support")
else ()
message(STATUS "Disabling VRMS support")
endif ()
# *** Stereo rectification ***
add_executable(mvl-stereo-processor
debug.h
debug.cpp
main.cpp
processor.h
processor.cpp
source.cpp
source_image.h
source_image.cpp
source_video.h
source_video.cpp
source_vrms.h
source_vrms.cpp
utils.h
utils.cpp
)
target_link_libraries(mvl-stereo-processor PRIVATE opencv_core opencv_imgcodecs opencv_videoio)
target_link_libraries(mvl-stereo-processor PRIVATE mvl_stereo_pipeline)
target_link_libraries(mvl-stereo-processor PRIVATE Qt5::Core)
if(libvrms_FOUND)
target_link_libraries(mvl-stereo-processor PRIVATE ${libvrms_LIBRARIES})
endif()
install(TARGETS mvl-stereo-processor DESTINATION ${CMAKE_INSTALL_BINDIR})