## == Some general configuration include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgDefinitions.cmake) include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgFunctions.cmake) set( cpPlugins_INSTALL_FILE @CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgInstallCommands.cmake ) ## == Automatically generated commands @PACKAGE_INIT@ ## == Include targets file set(_targets "${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake") if(EXISTS "${_targets}") include("${_targets}") check_required_components("@PROJECT_NAME@") endif(EXISTS "${_targets}") ## ====================================== ## == Needed packages and dependencies == ## ====================================== ## == Find ITK set(ITK_DIR @ITK_DIR@) find_package(ITK CONFIG REQUIRED) include(${ITK_USE_FILE}) ## == Find VTK, only if linked against ITK set(cpPlugins_USE_VTK 0) if(ITKVtkGlue_LOADED) find_package(VTK CONFIG REQUIRED) include(${VTK_USE_FILE}) set(cpPlugins_USE_VTK 1) endif(ITKVtkGlue_LOADED) ## == Find Qt5, only if linked against VTK set(cpPlugins_USE_Qt5 0) if(VTK_FOUND) if(Qt5_DIR) find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(cpPlugins_USE_Qt5 1) endif(Qt5_DIR) endif(VTK_FOUND) ## eof - $RCSfile$