]> Creatis software - crea.git/blobdiff - cmake/CREAMacro_FindAndUseLibraries.cmake
*** empty log message ***
[crea.git] / cmake / CREAMacro_FindAndUseLibraries.cmake
index e55bce933cf307d7b1feba74a00f842b4742f5aa..c54c85b7a5134778dbf93e4a91f4bc44caf6ff61 100644 (file)
@@ -1,7 +1,7 @@
 
 
 MACRO(CREA_FIND_AND_USE_LIBRARIES)
-
+OPTION(DEBUG "Use debug libraries" ON)
 #-----------------------------------------------------------------------------
 # If one can invoke this macro then crea has already been found !!
 # However if one whishes to link against crea and crea was built 
@@ -284,13 +284,20 @@ IF(USE_BOOST)
                #boost_date_time-vc71-mt-1_37
        
                #message("creamacro find and use lib = ${Boost_SIGNALS_LIBRARY}")
-               SET(BOOST_LIBRARIES
+               IF(DEBUG)
+                       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 DEBUG)
+                       SET(BOOST_LIBRARIES
                                boost_signals-vc90-mt-1_40
-                boost_filesystem-vc90-mt-1_40
-                boost_date_time-vc90-mt-1_40
-                  
-                  #what about boost_thread? JPR
-           )
+                               boost_filesystem-vc90-mt-1_40
+                               boost_date_time-vc90-mt-1_40
+                       )
+               ENDIF(DEBUG)
          ENDIF(WIN32)
       IF(NOT WIN32)
        IF(APPLE)