forked from ytsutano/bookscan
-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
28 lines (17 loc) · 1011 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
cmake_minimum_required(VERSION 2.8)
PROJECT(voussoir CXX)
set(ROOT ./)
include_directories(${ROOT})
ADD_EXECUTABLE(voussoir main.cpp marker.cpp page.cpp)
FIND_PACKAGE(OpenCV REQUIRED)
TARGET_LINK_LIBRARIES(voussoir ${OpenCV_LIBS})
##############
# For getting docopt to work
##############
target_compile_definitions(voussoir PRIVATE DOCOPT_HEADER_ONLY=1) # This is added because of an if statement at the bottom of docopt.h -- this enables actually including docopt.cpp from docopt.h.
set(CMAKE_CXX_FLAGS "-std=c++11") # docopt needs this, per https://github.com/Qihoo360/logkafka/issues/1
##############
FILE(COPY ${PROJECT_SOURCE_DIR}/Example_Images/test_input.jpg DESTINATION ${PROJECT_BINARY_DIR}/bin/docs)
FILE(COPY ${PROJECT_SOURCE_DIR}/markers/markers_for_book_scanner.ai DESTINATION ${PROJECT_BINARY_DIR}/bin/docs)
FILE(COPY ${PROJECT_SOURCE_DIR}/markers/markers_for_book_scanner.pdf DESTINATION ${PROJECT_BINARY_DIR}/bin/docs)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)