31 lines
796 B
CMake
31 lines
796 B
CMake
cmake_minimum_required (VERSION 2.6)
|
|
project (Trainer)
|
|
# The version number.
|
|
set (Trainer_VERSION_MAJOR 1)
|
|
set (Trainer_VERSION_MINOR 0)
|
|
|
|
#Set the output folder
|
|
set (CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/output)
|
|
set (SRC ${PROJECT_SOURCE_DIR}/src)
|
|
set (INCLUDE ${PROJECT_SOURCE_DIR}/include)
|
|
set (EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
|
set (LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
|
|
set(CMAKE_BUILD_TYPE Debug)
|
|
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
|
|
|
|
|
#Included folders
|
|
include_directories("${SRC}")
|
|
include_directories("${INCLUDE}")
|
|
include_directories("${INCLUDE}/opencv")
|
|
|
|
#OpenCV
|
|
find_package( OpenCV )
|
|
include_directories( ${OpenCV_INCLUDE_DIRS} )
|
|
#include_directories( ${OpenCV2_INCLUDE_DIRS} )
|
|
|
|
add_executable(Trainer ${SRC}/Trainer.cpp)
|
|
|
|
target_link_libraries( Trainer ${OpenCV_LIBS} )
|
|
|