Boost_option.cmake 908 Bytes
Newer Older
1
#code executed if the boost option is add
2
FILE(GLOB boost_file ${My_Source}/utils/tb2boostgraph.cpp)
3

4
# list of cpp file extension 
5
6
7
SET (source_files ${source_files} ${boost_file})

# boost detection 
Thomas Schiex's avatar
Thomas Schiex committed
8
9
MESSAGE(STATUS "- boost flag on  .")

10
find_package(Boost 1.65.0 REQUIRED COMPONENTS graph iostreams)
11
#find_package(ZLIB)
12

Thomas Schiex's avatar
Thomas Schiex committed
13
14
15
MESSAGE(STATUS "   Boost_INCLUDE_DIRS: ${Boost_INCLUDE_DIRS}")
MESSAGE(STATUS "   Boost_LIBRARIES: ${Boost_LIBRARIES}")

16
#SET (all_depends ${all_depends} ${Boost_LIBRARIES} ${ZLIB_LIBRARIES})
17
SET (all_depends ${all_depends} ${Boost_LIBRARIES} "z" "lzma")
18
19
20

IF(NOT Boost_FOUND)
        MESSAGE(ERROR "#################################")
21
        MESSAGE(ERROR "Boost package not found")
22
23
24
25
26
27
        MESSAGE(ERROR "#################################")
ELSE (NOT Boost_FOUND)
        MESSAGE(STATUS "boost Package configured successfully.")
        SET (boostflag BOOST)
ENDIF(NOT Boost_FOUND)