[Liblas-commits] hg: [cmake] Added detection of Boost libraries
(headers-only + i...
liblas-commits at liblas.org
liblas-commits at liblas.org
Tue Sep 29 18:11:29 EDT 2009
changeset ba20e857f478 in /home/www/liblas.org/hg
details: http://hg.liblas.org/main/hg?cmd=changeset;node=ba20e857f478
summary: [cmake] Added detection of Boost libraries (headers-only + iostreams for now). Added WITH_BOOST option (#52). TODO: What is minimum required version of Boost?
diffstat:
CMakeLists.txt | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 14545ee77420 -r ba20e857f478 CMakeLists.txt
--- a/CMakeLists.txt Tue Sep 29 21:14:56 2009 +0100
+++ b/CMakeLists.txt Tue Sep 29 23:11:16 2009 +0100
@@ -86,7 +86,16 @@
# Search for dependencies
# Boost C++ Libraries support - optional, default=OFF
-# TODO
+SET(WITH_BOOST FALSE CACHE BOOL "Choose if Boost C++ Libraries support should be built")
+
+# TODO: Decide minimum required version of Boost. Is 1.38 OK? --mloskot
+IF(WITH_BOOST)
+ FIND_PACKAGE(Boost 1.35 REQUIRED iostreams)
+
+ IF(Boost_FOUND AND Boost_iostreams_FOUND)
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ ENDIF()
+ENDIF()
# zlib support - optional, default=OFF
SET(WITH_ZLIB FALSE CACHE BOOL "Choose if zlib support should be built")
More information about the Liblas-commits
mailing list