-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
33 lines (25 loc) · 1.13 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
cmake_minimum_required(VERSION 2.8.3)
project( OpenCVTest )
find_package( OpenCV REQUIRED )
#add_subdirectory(src)
#file(GLOB SourceFiles
# "*.h"
# "*.cpp"
#)
add_definitions( "-std=c++11" )
include_directories ("${PROJECT_SOURCE_DIR}/lib/thinning")
include_directories ("${PROJECT_SOURCE_DIR}/lib/binarisation")
include_directories ("${PROJECT_SOURCE_DIR}/lib/optimisation")
include_directories ("${PROJECT_SOURCE_DIR}/lib/gap-optimisation")
include_directories ("${PROJECT_SOURCE_DIR}/lib/extraction")
add_subdirectory(lib/thinning)
add_subdirectory(lib/binarisation)
add_subdirectory(lib/optimisation)
add_subdirectory(lib/gap-optimisation)
add_subdirectory(lib/extraction)
add_executable( ThinningTest src/ThinningTest.cpp )
add_executable( BinarisationTest src/BinarisationTest.cpp )
add_executable( GapOptimisationTest src/GapOptimisationTest.cpp )
target_link_libraries( ThinningTest ${OpenCV_LIBS} ThinningAlgorithms )
target_link_libraries( GapOptimisationTest ${OpenCV_LIBS} GapOptimisation )
target_link_libraries( BinarisationTest ${OpenCV_LIBS} ExtractionAlgorithms ThinningAlgorithms BinarisationAlgorithms OptimisationAlgorithms )