# =================================== # -- Some configurations variables -- # =================================== SET(USE_QT4 "@QT4_FOUND@") # ======================= # -- Find dependencies -- # ======================= # Find ITK and VTK SET(ITK_DIR @ITK_DIR@) FIND_PACKAGE(ITK REQUIRED) INCLUDE(${ITK_USE_FILE}) SET(VTK_DIR @VTK_DIR@) FIND_PACKAGE(VTK REQUIRED) INCLUDE(${VTK_USE_FILE}) # Do not use itk-vtk glue --> problems ahead!!! IF(ITKVtkGlue_LOADED) MESSAGE(FATAL_ERROR "ITKVtkGlue module is available. Please re-compile your ITK without it. It could lead to nasty compilation problems... Just waiting for Kitware to solve it.") ENDIF(ITKVtkGlue_LOADED) IF(USE_QT4 EQUAL "1") SET(QT_QMAKE_EXECUTABLE @QT_QMAKE_EXECUTABLE@) FIND_PACKAGE(Qt4 REQUIRED) INCLUDE(${QT_USE_FILE}) ## Check for required vtk-qt4 modules SET( vtk_required_modules vtkGUISupportQt vtkGUISupportQtOpenGL ) FOREACH(vtk_module ${vtk_required_modules}) IF(NOT ${vtk_module}_LOADED) MESSAGE( FATAL_ERROR "${vtk_module} module is required but not available." ) ENDIF(NOT ${vtk_module}_LOADED) ENDFOREACH(vtk_module) ENDIF(USE_QT4 EQUAL "1") # ========================= # -- Include directories -- # ========================= INCLUDE_DIRECTORIES( @PROJECT_SOURCE_DIR@/lib @PROJECT_SOURCE_DIR@/lib/third_party @PROJECT_SOURCE_DIR@/lib/third_party/ItkVtkGlue @PROJECT_BINARY_DIR@/lib @PROJECT_BINARY_DIR@/lib/third_party @PROJECT_BINARY_DIR@/lib/third_party/ItkVtkGlue @CMAKE_INSTALL_PREFIX@/include @CMAKE_INSTALL_PREFIX@/include/third_party @CMAKE_INSTALL_PREFIX@/include/third_party/ItkVtkGlue ) # ========================= # -- Library directories -- # ========================= IF(MSVC) LINK_DIRECTORIES( @PROJECT_BINARY_DIR@/$(ConfigurationName) @CMAKE_INSTALL_PREFIX@/bin @CMAKE_INSTALL_PREFIX@/lib ) ELSE(MSVC) LINK_DIRECTORIES( @PROJECT_BINARY_DIR@ @CMAKE_INSTALL_PREFIX@/bin @CMAKE_INSTALL_PREFIX@/lib ) ENDIF(MSVC) # =================== # -- Library names -- # =================== SET(cpExtensions_LIBRARY cpExtensions) SET(cpPlugins_Interface_LIBRARY cpPlugins_Interface) SET(cpPlugins_LIBRARY cpPlugins) # ====================== # -- Executable names -- # ====================== FIND_PROGRAM( cpPlugins_createHost_APP NAMES cpPlugins_createHost HINTS /usr /usr/local PATHS @CMAKE_INSTALL_PREFIX@/bin @PROJECT_BINARY_DIR@ PATH_SUFFIXES bin sbin DOC "Where is cpPlugins_createHost?" ) ## eof - $RCSfile$