-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (30 loc) · 951 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
44
find_package(OpenCV REQUIRED)
find_package( ZLIB REQUIRED )
if(NOT DEFINED VTK_USE_FILE )
find_package(VTK REQUIRED)
endif(NOT DEFINED VTK_USE_FILE )
include ("${VTK_USE_FILE}")
option(EXTRACT_CORNER "Extract corner points")
if(EXTRACT_CORNER)
add_definitions( -DEXTRACT_CORNER )
endif()
find_package(OpenMP)
if (OPENMP_FOUND)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif (OPENMP_FOUND)
OPTION(BUILD_SURFMATCH "Build surf match program. Requires the Toon library." OFF)
include_directories(${ZLIB_INCLUDE_DIRS})
ADD_EXECUTABLE(surf3d
surf3d.cxx
vtk3DSURF.cxx
integral.cxx
fasthessian.cxx
surf.cxx)
TARGET_LINK_LIBRARIES(surf3d ${OpenCV_LIBS} ${VTK_LIBRARIES} ${ZLIB_LIBRARIES})
if (BUILD_SURFMATCH)
ADD_EXECUTABLE(match3d
MainMatch.cxx
MatchPoint.cxx)
TARGET_LINK_LIBRARIES(match3d lapack blas ${VTK_LIBRARIES})
endif (BUILD_SURFMATCH)