forked from drNoob13/fisheyeStitcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
42 lines (35 loc) · 1.05 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
cmake_minimum_required(VERSION 3.5.1)
project( fisheyeStitcher )
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
if(COMPILER_SUPPORTS_CXX17)
# set(CMAKE_CXX_COMPILER "/usr/bin/g++-7") # only if necessary
add_compile_options(-std=c++17 -O3)
else()
message(FATAL_ERROR "ERROR: The compiler ${CMAKE_CXX_COMPILER} has no C++17
support. Please use a different C++ compiler.")
endif()
find_package( OpenCV REQUIRED )
include_directories(
${OpenCV_INCLUDE_DIRS}
include
)
add_definitions(
# -DMY_DEBUG # Print debug info and dump intermediate images
# -DPROFILING # Profiling performance function-wise
# -DGEAR360_C200 # Setting for GEAR 360 C200 camera
)
add_library( stitcher SHARED
src/fisheye_stitcher.cpp
)
add_executable( fisheyeStitcher
app/stitch.cpp
)
target_link_libraries( fisheyeStitcher
stitcher
${OpenCV_LIBS}
)
set_target_properties( fisheyeStitcher
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)