forked from vbajpai/imagefilters
/
CMakeLists.txt
30 lines (21 loc) · 1019 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 supported cmake version
cmake_minimum_required(VERSION 2.6)
# identify the project and programming language
project(imagefilters CXX)
# compiler flags passed as arguments
add_definitions(-Wall -Werror)
# specify the header files location
include_directories(${CMAKE_SOURCE_DIR}/include)
# set output directories for libraries and executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
# find external libraries
find_package(OpenCV REQUIRED)
# specify the TARGET executable
file(GLOB imagefilters_SOURCES ${CMAKE_SOURCE_DIR}/src/*.cc)
add_executable(imagefilters ${imagefilters_SOURCES})
# link to external libraries
target_link_libraries(imagefilters ${OpenCV_LIBS})
# ---------------------------------------------------------------------------#