-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCMakeLists.txt
43 lines (33 loc) · 1003 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
cmake_minimum_required(VERSION 2.6)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
# OpenCV Config
find_package(OpenCV REQUIRED)
message("-- OPENCV include: " ${OpenCV_INCLUDE_DIRS})
message("-- OPENCV libs dir: " ${OpenCV_LIB_DIR})
message("-- OPENCV libs: " ${OpenCV_LIBS} )
# Conditional clause and corresponding automatic includings
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
LINK_DIRECTORIES(${OpenCV_LIB_DIR})
ADD_DEFINITIONS(-DDEBUG -ggdb -O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -ffast-math -fbranch-probabilities)
set(SRCS
lib/ldb/Ldb.cpp
lib/d_ldb/D_Ldb.cpp
src/OpenABLE.cpp
)
ADD_EXECUTABLE(
Test_OpenABLE
Test_OpenABLE.cpp
${SRCS}
)
TARGET_LINK_LIBRARIES(
Test_OpenABLE
${OpenCV_LIBS}
)
################################
foreach(dir ${DIRS})
FILE(GLOB files ${dir}/*.h*)
LIST(APPEND h_files ${files})
endforeach(dir)
add_custom_target(TAGS etags --members -l c++ ${h_files} ${SRCS})