-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (29 loc) · 1.16 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
project("DeepMatching Helper")
cmake_minimum_required(VERSION 2.60)
set(DEEPMATCHING_PATH "DEEPMATCHING-NOT-FOUND" CACHE PATH "DeepMatching source code path")
if(DEEPMATCHING_PATH STREQUAL "DEEPMATCHING-NOT-FOUND")
message(FATAL_ERROR "There're no DeepMatching path")
endif()
include_directories(${DEEPMATCHING_PATH})
set(DEEPMATCHING_HEADER_FILES
${DEEPMATCHING_PATH}/array_types.h
${DEEPMATCHING_PATH}/conv.h
${DEEPMATCHING_PATH}/deep_matching.h
${DEEPMATCHING_PATH}/hog.h
${DEEPMATCHING_PATH}/image.h
${DEEPMATCHING_PATH}/maxfilter.h
${DEEPMATCHING_PATH}/pixel_desc.h
${DEEPMATCHING_PATH}/std.h )
set(DEEPMATCHING_SRC_FILES
${DEEPMATCHING_PATH}/conv.cpp
${DEEPMATCHING_PATH}/deep_matching.cpp
${DEEPMATCHING_PATH}/hog.cpp
${DEEPMATCHING_PATH}/image.cpp
${DEEPMATCHING_PATH}/maxfilter.cpp
${DEEPMATCHING_PATH}/pixel_desc.cpp
${DEEPMATCHING_PATH}/std.cpp)
set(CMAKE_DEBUG_POSTFIX "-debug")
set(DEEPMATCHING_HELPER_FILES dm_helper.h dm_helper.cpp)
add_definitions(-DLIBDEEPMATCHING_HELPER_EXPORTS)
add_library("dm_helper" SHARED ${DEEPMATCHING_HEADER_FILES} ${DEEPMATCHING_SRC_FILES} ${DEEPMATCHING_HELPER_FILES})
target_link_libraries("dm_helper")