- FIND_PACKAGE(Boost REQUIRED)
- IF(Boost_FOUND)
- MESSAGE ( STATUS "=======================================")
- MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
- INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
- LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
+
+ find_package( Boost 1.37.0 COMPONENTS signals date_time filesystem system )
+
+ IF(Boost_FOUND)
+ MESSAGE ( STATUS "=======================================")
+ MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
+ #target_link_libraries(${Boost_LIBRARIES})
+ ELSE(Boost_FOUND)
+ MESSAGE(FATAL_ERROR "boost C++ library not found - Set Boost_INCLUDE_DIR to the directory containing boost headers")
+ ENDIF(Boost_FOUND)
+ # CREA_DEFINE( USE_BOOST )
+# include_directories(${Boost_INCLUDE_DIRS})
+ # add_executable(foo foo.cc)
+ # target_link_libraries(foo ${Boost_LIBRARIES})
+ # endif()
+
+ # FIND_PACKAGE(Boost REQUIRED)
+ # IF(Boost_FOUND)
+ # MESSAGE ( STATUS "=======================================")
+ # MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
+ # INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ # LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )