Une MAJ de sécurité est nécessaire sur notre version actuelle. Elle sera effectuée lundi 02/08 entre 12h30 et 13h. L'interruption de service devrait durer quelques minutes (probablement moins de 5 minutes).

dtkConfig.cmake.in 4.5 KB
Newer Older
1
## Version: $Id$
2
##
3
######################################################################
4 5 6
##
### Commentary:
##
7
######################################################################
8
##
9
### Change Log:
10
##
11
######################################################################
12
##
13
### Code:
14

15 16 17
set(DTK_BUILD_32 @DTK_BUILD_32@)
set(DTK_BUILD_64 @DTK_BUILD_64@)

18 19 20 21 22
## ###################################################################
## Defines:
## - dtk_INCLUDE_DIRS
## ###################################################################

23 24
set(dtk_INCLUDE_DIR "@CMAKE_CURRENT_SOURCE_DIR@")

25
set(dtk_INCLUDE_DIRS
26 27 28
  "@CMAKE_CURRENT_SOURCE_DIR@"
  "@CMAKE_CURRENT_SOURCE_DIR@/include"
  "@CMAKE_CURRENT_SOURCE_DIR@/src"
29
  "@CMAKE_CURRENT_SOURCE_DIR@/src/dtk"
Julien Wintz's avatar
Julien Wintz committed
30
  "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkLog"
31
  "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkCore"
32
  "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkMath"
33
  "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkMeta"
34
  "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkTest"
35
  "@CMAKE_CURRENT_BINARY_DIR@")
36

37
include("@CMAKE_BINARY_DIR@/dtkDepends.cmake")
NICLAUSSE Nicolas's avatar
NICLAUSSE Nicolas committed
38 39 40 41
include("@CMAKE_SOURCE_DIR@/cmake/dtkWrap.cmake")

set(CMAKE_MODULE_PATH
  ${CMAKE_MODULE_PATH} "@CMAKE_SOURCE_DIR@/cmake/")
42

43
set_directory_properties(PROPERTIES TEST_INCLUDE_FILE "@CMAKE_BINARY_DIR@/dtkSetTestEnvironment.cmake")
44

45
set(dtk_MODULE_PATH "@CMAKE_BINARY_DIR@")
Julien Wintz's avatar
Julien Wintz committed
46 47 48 49
set(dtk_INSTALL_DOCS "@dtk_INSTALL_DOCS@")
set(dtk_CONFIG_DOCS  "@dtk_CONFIG_DOCS@")

set(dtk_WRAP_PREFIX "@CMAKE_SOURCE_DIR@/wrp")
KLOCZKO Thibaud's avatar
KLOCZKO Thibaud committed
50

NICLAUSSE Nicolas's avatar
NICLAUSSE Nicolas committed
51 52 53
## ###################################################################
## Options
## ###################################################################
54

55 56
set(DTK_BUILD_DISTRIBUTED @DTK_BUILD_DISTRIBUTED@)
set(DTK_BUILD_COMPOSER @DTK_BUILD_COMPOSER@)
57 58
set(DTK_BUILD_SCRIPT @DTK_BUILD_SCRIPT@)
set(DTK_BUILD_WRAPPERS @DTK_BUILD_WRAPPERS@)
59
set(DTK_BUILD_WIDGETS @DTK_BUILD_WIDGETS@)
60 61 62 63 64 65 66
set(DTK_BUILD_SUPPORT_CORE @DTK_BUILD_SUPPORT_CORE@)
set(DTK_BUILD_SUPPORT_CONTAINER @DTK_BUILD_SUPPORT_CONTAINER@)
set(DTK_BUILD_SUPPORT_COMPOSER @DTK_BUILD_SUPPORT_COMPOSER@)
set(DTK_BUILD_SUPPORT_DISTRIBUTED @DTK_BUILD_SUPPORT_DISTRIBUTED@)
set(DTK_BUILD_SUPPORT_GUI @DTK_BUILD_SUPPORT_GUI@)
set(DTK_BUILD_SUPPORT_MATH @DTK_BUILD_SUPPORT_MATH@)
set(DTK_BUILD_SUPPORT_PLOT @DTK_BUILD_SUPPORT_PLOT@)
67
set(DTK_BUILD_SUPPORT_VR @DTK_BUILD_SUPPORT_VR@)
68
set(DTK_ENABLE_COVERAGE @DTK_ENABLE_COVERAGE@)
69
set(DTK_COVERAGE_USE_COBERTURA @DTK_COVERAGE_USE_COBERTURA@)
70
set(DTK_ENABLE_MEMCHECK @DTK_ENABLE_MEMCHECK@)
71

72
set(DTK_HAVE_MPI @DTK_HAVE_MPI@)
73 74
set(DTK_HAVE_VRPN @DTK_HAVE_VRPN@)
set(DTK_HAVE_NITE @DTK_HAVE_NITE@)
75
set(DTK_HAVE_ZLIB @DTK_HAVE_ZLIB@)
76

77 78 79 80 81
if(DTK_BUILD_DISTRIBUTED)
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkDistributed")
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkDistributedTest")
endif(DTK_BUILD_DISTRIBUTED)

82
if(DTK_BUILD_COMPOSER)
83
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkComposer")
84 85
endif(DTK_BUILD_COMPOSER)

nschnitz's avatar
nschnitz committed
86 87 88 89
if(DTK_BUILD_SCRIPT)
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkScript")
endif(DTK_BUILD_SCRIPT)

90
if(DTK_BUILD_WRAPPERS)
91 92
  set(SIP_FOUND @SIP_FOUND@)
  set(SWIG_FOUND @SWIG_FOUND@)
Julien Wintz's avatar
Julien Wintz committed
93
  set(DTK_PYTHON_WRAPPER @DTK_PYTHON_WRAPPER@)
94 95 96 97 98
  set(DTK_WRAPPING_PYTHON @DTK_WRAPPING_PYTHON@)
  set(DTK_WRAPPING_CSHARP @DTK_WRAPPING_CSHARP@)
  set(DTK_WRAPPING_TCL @DTK_WRAPPING_TCL@)
endif(DTK_BUILD_WRAPPERS)

99
if(DTK_BUILD_WIDGETS)
100
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/src/dtkWidgets")
101 102
endif(DTK_BUILD_WIDGETS)

103 104 105 106 107 108 109 110 111 112 113 114
if(DTK_BUILD_SUPPORT_CORE)
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/include/dtkCoreSupport")
endif(DTK_BUILD_SUPPORT_CORE)

if(DTK_BUILD_SUPPORT_CONTAINER)
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/include/dtkContainerSupport")
endif(DTK_BUILD_SUPPORT_CONTAINER)

if(DTK_BUILD_SUPPORT_MATH)
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/include/dtkMathSupport")
endif(DTK_BUILD_SUPPORT_MATH)

115
if(DTK_BUILD_SUPPORT_GUI)
116
  set(dtk_INCLUDE_DIRS ${dtk_INCLUDE_DIRS} "@CMAKE_CURRENT_SOURCE_DIR@/include/dtkGuiSupport")
117 118
endif(DTK_BUILD_SUPPORT_GUI)

Julien Wintz's avatar
Julien Wintz committed
119 120 121
## ###################################################################
## Helper function
## ###################################################################
122

Julien Wintz's avatar
Julien Wintz committed
123 124 125 126 127 128 129
function(PREPEND var prefix)
   set(listVar "")
   foreach(f ${ARGN})
      list(APPEND listVar "${prefix}/${f}")
   endforeach(f)
   set(${var} "${listVar}" PARENT_SCOPE)
endfunction(PREPEND)
130

131 132
######################################################################
### dtkConfig.cmake.in ends here