1 ## == Some general configuration
2 include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgDefinitions.cmake)
3 include(@CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgFunctions.cmake)
6 @CMAKE_INSTALL_PREFIX@/lib/cmake/@PROJECT_NAME@/cpPlgInstallCommands.cmake
8 ## == Automatically generated commands
11 ## == Include targets file
12 set(_targets "${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
13 if(EXISTS "${_targets}")
14 include("${_targets}")
15 check_required_components("@PROJECT_NAME@")
16 endif(EXISTS "${_targets}")
18 ## ======================================
19 ## == Needed packages and dependencies ==
20 ## ======================================
23 find_package(ITK CONFIG REQUIRED)
24 include(${ITK_USE_FILE})
26 ## == Find VTK, only if linked against ITK
27 set(cpPlugins_USE_VTK 0)
29 find_package(VTK CONFIG REQUIRED)
30 include(${VTK_USE_FILE})
31 set(cpPlugins_USE_VTK 1)
32 endif(ITKVtkGlue_LOADED)
34 ## == Find Qt5, only if linked against VTK
35 set(cpPlugins_USE_Qt5 0)
38 find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets)
39 set(CMAKE_INCLUDE_CURRENT_DIR ON)
41 set(cpPlugins_USE_Qt5 1)