diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 05a560404..61d5d524a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -19,6 +19,14 @@ if (PNG_FOUND) | |||
| 19 | add_definitions(-DHAVE_PNG) | 19 | add_definitions(-DHAVE_PNG) |
| 20 | endif () | 20 | endif () |
| 21 | 21 | ||
| 22 | find_package(Boost) | ||
| 23 | if (Boost_FOUND) | ||
| 24 | include_directories(${Boost_INCLUDE_DIRS}) | ||
| 25 | else() | ||
| 26 | message(STATUS "Boost not found, falling back to externals") | ||
| 27 | include_directories(externals/boost) | ||
| 28 | endif() | ||
| 29 | |||
| 22 | # Include bundled CMake modules | 30 | # Include bundled CMake modules |
| 23 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-modules") | 31 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-modules") |
| 24 | 32 | ||