-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
32 lines (21 loc) · 915 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
31
32
cmake_minimum_required (VERSION 2.8)
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
project (frei0r)
find_package (OpenCV)
include(FindPkgConfig)
if (PKG_CONFIG_FOUND)
pkg_check_modules(GAVL gavl)
endif (PKG_CONFIG_FOUND)
include_directories (AFTER include)
if (MSVC)
include_directories (include/msvc)
endif (MSVC)
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS_DEBUG})
set (LIBDIR lib/frei0r-1)
set (FREI0R_DEF ${CMAKE_SOURCE_DIR}/msvc/frei0r_1_0.def)
set (FREI0R_1_1_DEF ${CMAKE_SOURCE_DIR}/msvc/frei0r_1_1.def)
# --- custom targets: ---
INCLUDE( cmake/modules/TargetDistclean.cmake OPTIONAL)
# See this thread for a ridiculous discussion about the simple question how to install a header file with CMake: http://www.cmake.org/pipermail/cmake/2009-October/032874.html
install (DIRECTORY include DESTINATION . FILES_MATCHING PATTERN "frei0r.h" PATTERN "msvc" EXCLUDE)
add_subdirectory (src)