]> Creatis software - crea.git/blobdiff - cmake/CREAMacro_FindAndUseLibraries.cmake
*** empty log message ***
[crea.git] / cmake / CREAMacro_FindAndUseLibraries.cmake
index 8a159b3787b72f7957db5b72399eefff62e664aa..1647eb09f4f6b96a272ff06b311770c3d5c7923f 100644 (file)
@@ -264,9 +264,20 @@ IF(USE_BOOST)
     IF(Boost_FOUND)
       MESSAGE ( STATUS "=======================================")
       MESSAGE ( STATUS "Looking for boost C++ library... - found in ${Boost_INCLUDE_DIR}")
-      INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})
+      INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})        
       LINK_DIRECTORIES( ${Boost_LIBRARY_DIRS} )
+         
+          
       CREA_DEFINE( USE_BOOST )
+         IF(WIN32)
+               LINK_DIRECTORIES( ${Boost_INCLUDE_DIRS}/lib)
+               #MESSAGE ("EED " ${Boost_LIBRARY_DIRS})
+               SET(BOOST_LIBRARIES
+                       libboost_signals-vc71-mt-1_37
+                       libboost_filesystem-vc71-mt-1_37
+            boost_date_time-vc71-mt-1_37
+           )
+         ENDIF(WIN32)
       IF(NOT WIN32)
        IF(NOT APPLE)
          SET(BOOST_LIBRARIES
@@ -285,8 +296,9 @@ IF(USE_BOOST)
            boost_program_options-mt
            boost_regex-mt
            )
-       ENDIF(NOT APPLE)
+       ENDIF(NOT APPLE)        
       ENDIF(NOT WIN32)
+         
       MARK_AS_ADVANCED(Boost_INCLUDE_DIR)
     ELSE(Boost_FOUND)
       MESSAGE(FATAL_ERROR "boost C++ library not found - Set Boost_INCLUDE_DIR to the directory containing boost headers")