-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathCMakeLists.txt
52 lines (40 loc) · 975 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
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(imreg_fmt)
option(USE_OPENCV_PHASECORRELATE "Use phaseCorrelate function from OpenCV instead of own implementation" ON)
if(USE_OPENCV_PHASECORRELATE)
add_definitions(-DUSE_OPENCV_PHASECORRELATE)
endif()
find_library(FFTW_LIBRARY
NAMES fftw3 fftw)
set(FFTW_LIBRARIES "${FFTW_LIBRARY}")
find_library(FFTW_libm_LIBRARY
NAMES m)
list(APPEND FFTW_LIBRARIES "${FFTW_libm_LIBRARY}")
find_package(OpenCV REQUIRED)
include_directories(
include/
${OpenCV_INCLUDE_DIRS}
${fftw_path}
/usr/include/eigen3
)
add_library(imreg_fmt
src/image_dft.cpp
src/image_transforms.cpp
src/image_registration.cpp
)
target_link_libraries(imreg_fmt
${OpenCV_LIBS}
${FFTW_LIBRARIES}
)
add_executable(video_main
src/video_main.cpp
)
target_link_libraries(video_main
imreg_fmt
)
add_executable(image_main
src/image_main.cpp
)
target_link_libraries(image_main
imreg_fmt
)