aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTony Wasserka <neobrainx@gmail.com>2014-12-12 17:32:57 +0100
committerTony Wasserka <neobrainx@gmail.com>2014-12-12 17:32:57 +0100
commit33e61ef514d2b1a32eea10161d900f1e2e5c0ba2 (patch)
treed4f7e432ab42cf7fad3834bb14ba72b54b346cc0 /CMakeLists.txt
parentcb1d9402b340e018c3598d8631f9d92e6871fe28 (diff)
parent3d8c6e61beef922f79733718c5314c0d7015e93f (diff)
Merge pull request #261 from neobrain/boost
Add Boost as a submodule and add some minor cleanups using Boost.Range
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
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)
add_definitions(-DHAVE_PNG)
endif ()
+find_package(Boost)
+if (Boost_FOUND)
+ include_directories(${Boost_INCLUDE_DIRS})
+else()
+ message(STATUS "Boost not found, falling back to externals")
+ include_directories(externals/boost)
+endif()
+
# Include bundled CMake modules
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/externals/cmake-modules")