1 ## =========================================================================
2 ## @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 ## =========================================================================
5 cmake_minimum_required(VERSION 3.0)
7 ## == Basic project configuration
8 set(prj_NAME cpPlugins)
13 ## == Project definition
14 project(${prj_NAME} VERSION "${prj_MAJ}.${prj_MIN}.${prj_REL}")
16 ## == Project policies
17 set(_policies CMP0015 CMP0020 CMP0042 CMP0053)
18 foreach(_p ${_policies})
20 cmake_policy(SET ${_p} NEW)
24 ## == Some general configuration
25 include(cmake/Definitions.cmake)
26 include(cmake/Functions.cmake)
29 find_package(ITK CONFIG REQUIRED)
30 include(${ITK_USE_FILE})
32 ## == Find VTK, only if linked against ITK
33 set(cpPlugins_USE_VTK 0)
35 find_package(VTK CONFIG REQUIRED)
36 include(${VTK_USE_FILE})
37 set(cpPlugins_USE_VTK 1)
38 endif(ITKVtkGlue_LOADED)
40 ## == Find Qt5, only if linked against VTK
41 set(cpPlugins_USE_Qt5 0)
44 find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets)
45 set(CMAKE_INCLUDE_CURRENT_DIR ON)
47 set(cpPlugins_USE_Qt5 1)
54 ## == Installation commands
55 ## include(cmake/InstallCommands.cmake)