-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathCMakeLists.txt
73 lines (61 loc) · 1.34 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
project(test_kaze_port)
cmake_minimum_required(VERSION 2.4)
# ============================================================================ #
add_definitions(-DDEBUG -g -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
# ============================================================================ #
# OpenCV
find_package(OpenCV 3.0 REQUIRED)
message("-- OPENCV include: " ${OpenCV_INCLUDE_DIRS})
include_directories(
${OpenCV_INCLUDE_DIRS}
)
link_directories(
${OpenCV_LIBRARY_DIRS}
)
# ============================================================================ #
set(SRCS
./src/utils.cpp
)
# ============================================================================ #
# KAZE tests
add_executable(
test_kaze
test_kaze.cpp
${SRCS}
)
target_link_libraries(
test_kaze
${OpenCV_LIBS}
)
add_executable(
test_kaze_match
test_kaze_match.cpp
${SRCS}
)
target_link_libraries(
test_kaze_match
${OpenCV_LIBS}
)
# ============================================================================ #
# A-KAZE tests
add_executable(
test_akaze
test_akaze.cpp
${SRCS}
)
target_link_libraries(
test_akaze
${OpenCV_LIBS}
)
add_executable(
test_akaze_match
test_akaze_match.cpp
${SRCS}
)
target_link_libraries(
test_akaze_match
${OpenCV_LIBS}
)