source: CMakeLists.txt @ 82aa9a

Revision 82aa9a, 915 bytes checked in by Simon A. Eugster <simon.eu@…>, 15 months ago (diff)

CMake change: Install frei0r.h to the /include directory

  • Property mode set to 100644
Line 
1cmake_minimum_required (VERSION 2.8)
2
3list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
4
5project (frei0r)
6
7find_package (OpenCV)
8include(FindPkgConfig)
9if (PKG_CONFIG_FOUND)
10   pkg_check_modules(GAVL gavl)
11endif (PKG_CONFIG_FOUND)
12
13include_directories (AFTER include)
14
15if (MSVC)
16  include_directories (include/msvc)
17endif (MSVC)
18
19set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS_DEBUG})
20
21set (LIBDIR lib/frei0r-1)
22set (FREI0R_DEF ${CMAKE_SOURCE_DIR}/msvc/frei0r_1_0.def)
23set (FREI0R_1_1_DEF ${CMAKE_SOURCE_DIR}/msvc/frei0r_1_1.def)
24
25# --- custom targets: ---
26INCLUDE( cmake/modules/TargetDistclean.cmake OPTIONAL)
27
28# 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
29install (DIRECTORY include DESTINATION . FILES_MATCHING PATTERN "frei0r.h" PATTERN "msvc" EXCLUDE)
30
31
32add_subdirectory (src)
Note: See TracBrowser for help on using the repository browser.