-# ????????? 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)