]> Creatis software - bbtk.git/commitdiff
*** empty log message ***
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 21 Mar 2008 11:02:31 +0000 (11:02 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Fri, 21 Mar 2008 11:02:31 +0000 (11:02 +0000)
kernel/install/CMakeLists.txt

index ba7d6d7e275227bcef6d99a7cc31a1f311e96672..1a9fe2b4c1f1cb0449bc88b7e22b609e65822d12 100644 (file)
@@ -50,16 +50,18 @@ IF(WIN32)
 
 
 
-# ????????? Why this line doesn't works ...?????
-FILE(GLOB_RECURSE LST_FILE_VTKDLL RELATIVE ${VTK_DIR} *.dll )
-
-FOREACH( iLST  ${LST_FILE_VTKDLL} )
-message("eed3 " ${iLST} )
-  INSTALL( 
-    FILES ${iLST}
-    DESTINATION bin/
-  )
-ENDFOREACH(iLST)
+  # ????????? Why this line doesn't works ...?????
+  IF(${VTK_DIR})
+    FILE(GLOB_RECURSE LST_FILE_VTKDLL RELATIVE ${VTK_DIR} *.dll )
+  ENDIF(${VTK_DIR})
+
+  FOREACH( iLST  ${LST_FILE_VTKDLL} )
+    message("eed3 " ${iLST} )
+    INSTALL( 
+      FILES ${iLST}
+      DESTINATION bin/
+    )
+  ENDFOREACH(iLST)
 
 ENDIF(WIN32)