-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (18 loc) · 778 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
cmake_minimum_required(VERSION 2.8)
#onlyliucat
project(test_MultichessboardExtraction)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -fPIC -lm -Wl,--no-as-needed -DLINUX -g -Wall \
-std=c++11 -Wunused-variable -Wwrite-strings -Wsign-compare -fpermissive ")
set(CMAKE_BUILD_TYPE "Release")
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
set(OpenCV_LIBS ${OpenCV_LIBRARIES})
MESSAGE(STATUS "The Opencv's include directory is:" ${OpenCV_INCLUDE_DIRS})
MESSAGE(STATUS "The Opencv's OpenCV_LIBS is:" ${OpenCV_LIBS})
INCLUDE_DIRECTORIES(./)
INCLUDE_DIRECTORIES(./include)
AUX_SOURCE_DIRECTORY(./ gSOURCE_FILES_)
add_executable(${PROJECT_NAME} "main.cpp"
${gSOURCE_FILES_}
)
target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBRARIES})