-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathCMakeLists.txt
47 lines (37 loc) · 1.34 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
cmake_minimum_required(VERSION 2.8)
project(openMVG_ofx)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set (CMAKE_CXX_FLAGS "--std=gnu++11 ${CMAKE_CXX_FLAGS}")
endif ()
# Check that submodule have been initialized and updated
if(NOT EXISTS ${PROJECT_SOURCE_DIR}/openfx/include)
message(FATAL_ERROR
"\n submodule(s) are missing, please update your repository:\n"
" > git submodule update -i\n")
endif()
find_package(OpenMVG REQUIRED)
find_package(Ceres)
find_package(OpenCV)
find_package(Boost)
#find_package(CCTag)
#IF(NOT CCTAG_FOUND)
# MESSAGE(STATUS "CCTAG package not found, CCTAG will be disabled")
#ELSE(NOT CCTAG_FOUND)
# MESSAGE(STATUS "CCTAG package found")
# MESSAGE(STATUS "CCTAG library directory ${CCTAG_LIBRARY_DIR}")
# MESSAGE(STATUS "CCTAG library names ${CCTAG_LIBRARIES_NAMES}")
# MESSAGE(STATUS "CCTAG include directory ${CCTAG_INCLUDE_DIR}")
ADD_DEFINITIONS(-DHAVE_CCTAG)
#ENDIF(NOT CCTAG_FOUND)
#if(CMAKE_COMPILER_IS_GNUCXX)
# include(AddCompilerFlag)
#
# # This flag is useful as not returning from a non-void function is an error with MSVC
# AddCompilerFlag("-Werror=return-type")
# AddCompilerFlag("-Werror=switch")
# AddCompilerFlag("-Werror=return-local-addr")
#endif()
# Add openfx subdirectory
add_subdirectory("${PROJECT_SOURCE_DIR}/openfx")
# Add plugin source
add_subdirectory("${PROJECT_SOURCE_DIR}/src")