File: ITKInternalConfig.cmake

package info (click to toggle)
insighttoolkit5 5.4.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704,404 kB
  • sloc: cpp: 783,697; ansic: 628,724; xml: 44,704; fortran: 34,250; python: 22,874; sh: 4,078; pascal: 2,636; lisp: 2,158; makefile: 461; yacc: 328; asm: 205; perl: 203; lex: 146; tcl: 132; javascript: 98; csh: 81
file content (52 lines) | stat: -rw-r--r-- 2,192 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#-----------------------------------------------------------------------------
#
# ITKConfig.cmake - ITK CMake configuration file used
# internally for remote modules calling 'find_package()'
# CMake function.
#
# This file is a minimal implementation of ITKConfig.cmake
# that should only be used internally when configuring ITK.
# Some remote modules contain an 'example' folder. The
# example folder is designed to compile both from
# within the source tree of the module and as an independent
# project. This requires to be able to use the CMake function
# 'find_package(ITK)'. When compiled as part of ITK, this
# function needs to be able to find the file ITKConfig.cmake
# which can only be defined at the end of configuring ITK
# as it needs all the ITK CMake variables to be defined.
#
# This file provides a work around and is defined early in
# the ITK configuration process. Since it is run from within
# the ITK source tree, it does not need to define most ITK
# variables as those are already defined. It only ensures
# that the requested components are available.

# Compute set of requested modules.
if(ITK_FIND_COMPONENTS)
  # Specific modules required by find_package(ITK) or optional and available.
  set(ITK_MODULES_REQUESTED "")
  foreach(M ${ITK_FIND_COMPONENTS})
    if(ITK_FIND_REQUIRED_${M} OR M IN_LIST ITK_MODULES_ENABLED)
      list(APPEND ITK_MODULES_REQUESTED "${M}")
    endif()
  endforeach()
else()
  # No specific modules requested.  Use all of them.
  set(ITK_MODULES_REQUESTED "")
  foreach(itk-module ${ITK_MODULES_ENABLED})
    if(NOT ${itk-module}_IS_TEST)
      list(APPEND ITK_MODULES_REQUESTED ${itk-module})
    endif()
  endforeach()
endif()

# Load requested modules and their dependencies into variables:
#  ITK_LIBRARIES       = Libraries to link
#  ITK_INCLUDE_DIRS    = Header file search path
#  ITK_LIBRARY_DIRS    = Library search path (for outside dependencies)
#  ITK_RUNTIME_LIBRARY_DIRS = Runtime linker search path
#  ITK_FACTORY_NAMES = List of <module>::<factory>::<format> to register
#  ITK_FACTORY_LIST  = List of factories
#  ITK_<factory_name> = List of formats for each factory

itk_module_config(ITK ${ITK_MODULES_REQUESTED})