]> Creatis software - bbtk.git/blobdiff - kernel/cmake/BBTKFindLibraries.cmake
#3479 Bug compilation windows dlfcn.h include
[bbtk.git] / kernel / cmake / BBTKFindLibraries.cmake
index a57a7079a3ad621cb816cf52e1c92094fcdbad09..50877b93dbf018e7e04aaa418a46c221fba57e21 100644 (file)
@@ -96,7 +96,7 @@ MESSAGE(STATUS "")
 IF(BBTK_USE_WXWIDGETS)
   SET(BBTK_LINK_LIBRARIES
     ${BBTK_LINK_LIBRARIES}
-    ${WXWIDGETS_LIBRARIES} 
+    ${WXWIDGETS_LIBRARIES}
     )
 ENDIF(BBTK_USE_WXWIDGETS)
 #-----------------------------------------------------------------------------
@@ -138,6 +138,15 @@ IF(UNIX)
 ENDIF(UNIX)
 #-----------------------------------------------------------------------------
 
+# mingw 
+IF(MINGW)
+  SET(BBTK_LINK_LIBRARIES
+    ${BBTK_LINK_LIBRARIES}
+    dl) 
+       include_directories( $ENV(CREATIS_THIRDPARTYDLLS_DIRS)/../include ) 
+ENDIF(MINGW)
+
+
 #-----------------------------------------------------------------------------
 MESSAGE(STATUS "")
 MESSAGE(STATUS "=======================================")