-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
64 lines (54 loc) · 1.28 KB
/
CMakeLists.txt
File metadata and controls
64 lines (54 loc) · 1.28 KB
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
project(BAFT)
cmake_minimum_required(VERSION 2.4)
# ============================================================================ #
add_definitions(-DDEBUG -g -O3 -Wall -std=c++11 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE)
#add_definitions(-DDEBUG -g -Wall -std=c++11 -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 REQUIRED)
message("-- OPENCV include: " ${OpenCV_INCLUDE_DIRS})
include_directories(
${OpenCV_INCLUDE_DIRS}
)
link_directories(
${OpenCV_LIBRARY_DIRS}
)
# ============================================================================ #
set(SRCS
./src/baft.cpp
./src/utils.cpp
)
# ============================================================================ #
# BAFT tests
add_executable(
test_baft
test_baft.cpp
${SRCS}
)
# BAFT match tests
add_executable(
test_baft_match
test_baft_match.cpp
${SRCS}
)
# Write out descriptors
add_executable(
write_descriptors
write_descriptors.cpp
${SRCS}
)
target_link_libraries(
test_baft
${OpenCV_LIBS}
)
target_link_libraries(
test_baft_match
${OpenCV_LIBS}
)
target_link_libraries(
write_descriptors
${OpenCV_LIBS}
)