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