-
Notifications
You must be signed in to change notification settings - Fork 71
/
CMakeLists.txt
56 lines (40 loc) · 1.74 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
#INCLUDE_DIRECTORIES(/usr/include/arpack++/include/)
#INCLUDE_DIRECTORIES(/usr/include/arpack++)
#project name
PROJECT(LILIANTESTS)
cmake_minimum_required(VERSION 2.8)
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
SET(BUILD_SHARED_LIBS ON)
## where are user-specific cmake modules
SET(CMAKE_MODULE_PATH $ENV{CMAKE_MODULE_PATH})
#OPTION(USE_BIAS OFF)
#IF(USE_BIAS)
#INCLUDE_DIRECTORIES(${BIAS_INCLUDE_DIR} /usr/local/include/BIAS /usr/include/ImageMagick /usr/local/include/opencv2 ${WXWIDGETS_INCLUDE_DIR})
#LINK_DIRECTORIES( ${BIAS_LINK_DIRECTORIES})
#ENDIF(USE_BIAS)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${BIAS_CXX_FLAGS} -O0 -ggdb -std=c++11")
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${BIAS_C_FLAGS} -O0 -ggdb -std=c++11")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3") #-fno-omit-frame-pointer")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c++11 -O3") #-fno-omit-frame-pointer")
# source files of library "LineMatchingLib" to be created
SET(LineMatchingLib_SRCS
#PairwiseLineMatching.cpp
LineDescriptor.cpp
EDLineDetector.cpp
)
# header files to be installed
SET(LineMatchingLib_HEADER
#PairwiseLineMatching.hh
LineDescriptor.hh
EDLineDetector.hh
LineStructure.hh
)
ADD_LIBRARY(LineMatchingLib
${LineMatchingLib_SRCS}
${LineMatchingLib_HEADER})
#TARGET_LINK_LIBRARIES(LineMatchingLib arpack /usr/lib/libsuperlu.so BIASImageBaseD opencv_core opencv_highgui opencv_imgproc BIASDebugD BIASMathAlgoD BIASMathBaseD BIASFilterD arpack++)
TARGET_LINK_LIBRARIES(LineMatchingLib opencv_core opencv_highgui opencv_imgproc)
ADD_EXECUTABLE(TestLineMatchingAlgorithm TestLineMatchingAlgorithm.cpp)
TARGET_LINK_LIBRARIES(TestLineMatchingAlgorithm LineMatchingLib )