-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCMakeLists.txt
30 lines (20 loc) · 979 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
cmake_minimum_required(VERSION 2.8)
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No build type selected, default to Release")
set(CMAKE_BUILD_TYPE "Release")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pipe -std=c++0x -fopenmp -fPIC")
find_package( OpenCV REQUIRED )
INCLUDE_DIRECTORIES(/home/cv/opencv3/include)
add_subdirectory(src)
file(GLOB SOURCES src/*.cpp)
file(GLOB HEADERS src/*.h)
set(files "${SOURCES}" "${HEADERS}")
add_executable(drnmppr-detect-marker src/drnmppr-detect-marker.cpp)
target_link_libraries(drnmppr-detect-marker ${OpenCV_LIBS})
add_executable(drnmppr-create-dictionary src/drnmppr-create-dictionary.cpp)
target_link_libraries(drnmppr-create-dictionary ${OpenCV_LIBS})
add_executable(drnmppr-create-marker src/drnmppr-create-marker.cpp)
target_link_libraries(drnmppr-create-marker ${OpenCV_LIBS})
add_executable(drnmppr-calibrate-camera src/drnmppr-calibrate-camera.cpp)
target_link_libraries(drnmppr-calibrate-camera ${OpenCV_LIBS})