diff --git a/Utils/SimpleMeshCreation/CMakeLists.txt b/Utils/SimpleMeshCreation/CMakeLists.txt index 20f6e553e5ab026218aa0920f1324f7cde2f75b1..14079e26d3962bcca17d42dd1b7f5979fe4dfbfc 100644 --- a/Utils/SimpleMeshCreation/CMakeLists.txt +++ b/Utils/SimpleMeshCreation/CMakeLists.txt @@ -1,19 +1,18 @@ +IF(TARGET VtkVis) -INCLUDE_DIRECTORIES( - ${CMAKE_SOURCE_DIR} - ${CMAKE_SOURCE_DIR}/BaseLib - ${CMAKE_SOURCE_DIR}/FileIO - ${CMAKE_SOURCE_DIR}/FileIO/Legacy - ${CMAKE_SOURCE_DIR}/GeoLib - ${CMAKE_SOURCE_DIR}/MathLib - ${CMAKE_SOURCE_DIR}/MeshLib - ${CMAKE_SOURCE_DIR}/Gui/VtkVis -) + INCLUDE_DIRECTORIES( + ${CMAKE_SOURCE_DIR} + ${CMAKE_SOURCE_DIR}/BaseLib + ${CMAKE_SOURCE_DIR}/FileIO + ${CMAKE_SOURCE_DIR}/FileIO/Legacy + ${CMAKE_SOURCE_DIR}/GeoLib + ${CMAKE_SOURCE_DIR}/MathLib + ${CMAKE_SOURCE_DIR}/MeshLib + ${CMAKE_SOURCE_DIR}/Gui/VtkVis + ) -INCLUDE( ${VTK_USE_FILE} ) + INCLUDE( ${VTK_USE_FILE} ) -# Create executables -IF(TARGET VtkVis) ADD_EXECUTABLE( generateStructuredQuadMesh generateStructuredQuadMesh.cpp ) SET_TARGET_PROPERTIES( generateStructuredQuadMesh PROPERTIES FOLDER Utils) TARGET_LINK_LIBRARIES( generateStructuredQuadMesh @@ -22,7 +21,7 @@ IF(TARGET VtkVis) GeoLib MathLib VtkVis - vtkRendering + ${VTK_LIBRARIES} ${QT_LIBRARIES} ) @@ -32,10 +31,9 @@ IF(TARGET VtkVis) MeshLib FileIO VtkVis - vtkRendering zlib + ${VTK_LIBRARIES} ${QT_LIBRARIES} ) -ENDIF() # QT4_FOUND - +ENDIF() # VtkVis-target is existing