- 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} )
- CREA_DEFINE( USE_BOOST )
- IF(NOT WIN32)
- SET(BOOST_LIBRARIES
- boost_signals
- boost_filesystem
- )
+ IF(NOT Boost_FOUND)
+ add_definitions( -DBOOST_ALL_NO_LIB )
+ add_definitions( -DBOOST_ALL_DYN_LINK )
+ FIND_PACKAGE(Boost COMPONENTS filesystem system signals date_time thread regex program_options REQUIRED)
+ IF(Boost_FOUND)
+ ADD_DEFINITIONS(-DBOOST_FILESYSTEM_VERSION=3)
+ MESSAGE ( STATUS "=======================================")
+ MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
+ INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+ LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS})
+ IF(WIN32)
+ CREA_DEFINE( USE_BOOST )
+ ADD_DEFINITIONS(-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED)
+ SET(BOOST_LIBRARIES
+ ${Boost_LIBRARIES}
+ )
+
+# FCY with cmake boost, it's useless.
+# But if it is not working, uncomment
+#
+# IF(USE_DEBUG_LIB)
+# SET(BOOST_LIBRARIES
+# boost_signals-vc90-mt-gd-1_40
+# boost_filesystem-vc90-mt-gd-1_40
+# boost_date_time-vc90-mt-gd-1_40
+# #what about boost_thread? JPR
+# )
+# ELSE(NOT USE_DEBUG_LIB)
+# SET(BOOST_LIBRARIES
+# boost_signals-vc90-mt-1_40
+# boost_filesystem-vc90-mt-1_40
+# boost_date_time-vc90-mt-1_40
+# )
+# ENDIF(USE_DEBUG_LIB)
+ ENDIF(WIN32)
+ IF(NOT WIN32)
+
+ SET(BOOST_LIBRARIES
+
+ ${Boost_LIBRARIES}
+#EED 10 Fev 2014
+#EED boost_system-mt
+#EED boost_thread-mt
+#EED boost_program_options-mt
+
+#EED 03 mars 2011
+#EED boost_signals-mt
+#EED boost_filesystem-mt
+#EED boost_date_time-mt
+#EED boost_system-mt
+#EED boost_program_options-mt
+#EED boost_regex-mt
+#EED boost_thread-mt
+
+ )