CTKConfig.cmake.in 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. ###########################################################################
  2. #
  3. # Library: CTK
  4. #
  5. # Copyright (c) Kitware Inc.
  6. #
  7. # Licensed under the Apache License, Version 2.0 (the "License");
  8. # you may not use this file except in compliance with the License.
  9. # You may obtain a copy of the License at
  10. #
  11. # http://www.apache.org/licenses/LICENSE-2.0.txt
  12. #
  13. # Unless required by applicable law or agreed to in writing, software
  14. # distributed under the License is distributed on an "AS IS" BASIS,
  15. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. # See the License for the specific language governing permissions and
  17. # limitations under the License.
  18. #
  19. ###########################################################################
  20. ###########################################################################
  21. #
  22. # Program: Visualization Toolkit
  23. # Module: VTKConfig.cmake.in
  24. #
  25. # Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  26. #
  27. # All rights reserved.
  28. # See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
  29. #
  30. # This software is distributed WITHOUT ANY WARRANTY; without even
  31. # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  32. # PURPOSE. See the above copyright notice for more information.
  33. #
  34. ###########################################################################
  35. #
  36. # CTKConfig.cmake - CTK CMake configuration file for external projects.
  37. #
  38. # This file is configured by CTK and used by the UseCTK.cmake module
  39. # to load CTK's settings for an external project.
  40. # Import CTK targets
  41. IF(NOT CTK_EXPORTS_INCLUDED)
  42. INCLUDE("@CTK_SUPERBUILD_BINARY_DIR@/CTKExports.cmake")
  43. SET(CTK_EXPORTS_INCLUDED 1)
  44. ENDIF()
  45. # Include CTK macros
  46. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetGccVersion.cmake")
  47. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionCheckCompilerFlags.cmake")
  48. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetCompilerVisibilityFlags.cmake")
  49. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroParseArguments.cmake")
  50. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroSetPaths.cmake")
  51. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroListFilter.cmake")
  52. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroBuildLibWrapper.cmake")
  53. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroBuildPlugin.cmake")
  54. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroBuildQtPlugin.cmake")
  55. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroTargetLibraries.cmake") # Import multiple macros
  56. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionExtractOptionNameAndValue.cmake")
  57. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroValidateBuildOptions.cmake")
  58. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGenerateDGraphInput.cmake")
  59. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGeneratePluginManifest.cmake")
  60. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGeneratePluginUseFile.cmake")
  61. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroGeneratePluginResourceFile.cmake")
  62. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetIncludeDirs.cmake")
  63. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetLibraryDirs.cmake")
  64. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionExtractPluginTargets.cmake")
  65. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetAllPluginTargets.cmake")
  66. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetTargetDependencies.cmake")
  67. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetPluginDependencies.cmake")
  68. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroSetupPlugins.cmake")
  69. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroGenerateMocs.cmake")
  70. SET(CTK_EXPORT_HEADER_TEMPLATE "@CTK_EXPORT_HEADER_TEMPLATE@")
  71. # Directory containing the ctkConfig.h file
  72. SET(CTK_CONFIG_H_INCLUDE_DIR @CTK_CONFIG_H_INCLUDE_DIR@)
  73. # The CTK DGraph executable used to compute target dependency graphs
  74. SET(CTK_DGRAPH_EXECUTABLE "@DGraph_EXECUTABLE@")
  75. # List all libraries
  76. SET(CTK_LIBRARIES @CTK_LIBRARIES@)
  77. # List all CTK libraries wrapped with PythonQt
  78. SET(CTK_WRAPPED_LIBRARIES_PYTHONQT @CTK_WRAPPED_LIBRARIES_PYTHONQT@)
  79. # Include CTK Plugin specific variables
  80. INCLUDE("@CTK_PLUGIN_USE_FILE@")
  81. @CTK_CONFIG_INSTALL_ONLY@
  82. # Library specific include directories
  83. @CTK_LIBRARY_INCLUDE_DIRS_CONFIG@
  84. # Library specific library directories
  85. @CTK_LIBRARY_LIBRARY_DIRS_CONFIG@
  86. # The CTK include file directories.
  87. SET(CTK_INCLUDE_DIRS "@CTK_BUILD_DIR@;@CTK_INCLUDE_DIRS_CONFIG@")
  88. # The CTK library directories. Note that if
  89. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  90. # will be the parent directories under which there will be a directory
  91. # of runtime binaries for each configuration type.
  92. SET(CTK_LIBRARY_DIRS "@CTK_LIBRARY_DIRS_CONFIG@")
  93. # The CTK external project libraries.
  94. SET(CTK_EXTERNAL_LIBRARIES "@CTK_EXTERNAL_LIBRARIES_CONFIG@")
  95. # The CTK external project library directories. Note that if
  96. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  97. # will be the parent directories under which there will be a directory
  98. # of runtime binaries for each configuration type.
  99. SET(CTK_EXTERNAL_LIBRARY_DIRS "@CTK_EXTERNAL_LIBRARY_DIRS_CONFIG@")
  100. # The CTK binary executable directories. Note that if
  101. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  102. # will be the parent directories under which there will be a directory
  103. # of runtime binaries for each configuration type.
  104. SET(CTK_EXECUTABLE_DIRS "@CTK_EXECUTABLE_DIRS_CONFIG@")
  105. # The CTK runtime library directories. Note that if
  106. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  107. # will be the parent directories under which there will be a directory
  108. # of runtime libraries for each configuration type.
  109. SET(CTK_RUNTIME_LIBRARY_DIRS "@CTK_RUNTIME_LIBRARY_DIRS_CONFIG@")
  110. # The CTK Qt designer plugin directory. Note that if
  111. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  112. # will be the parent directories under which there will be a directory
  113. # of runtime libraries for each configuration type.
  114. SET(CTK_QTDESIGNERPLUGINS_DIR "@CTK_QTDESIGNERPLUGINS_DIR_CONFIG@")
  115. # CTK external projects variables
  116. @CTK_SUPERBUILD_EP_VARS_CONFIG@
  117. # Qt configuration
  118. SET(CTK_QT_RCC_EXECUTABLE "@QT_RCC_EXECUTABLE@")
  119. SET(CTK_QT_MOC_EXECUTABLE "@QT_MOC_EXECUTABLE@")
  120. SET(CTK_QT_UIC_EXECUTABLE "@QT_UIC_EXECUTABLE@")
  121. SET(CTK_QT_QMAKE_EXECUTABLE "@QT_QMAKE_EXECUTABLE@")
  122. # The CTK version number
  123. SET(CTK_MAJOR_VERSION "@CTK_MAJOR_VERSION@")
  124. SET(CTK_MINOR_VERSION "@CTK_MINOR_VERSION@")
  125. SET(CTK_PATCH_VERSION "@CTK_PATCH_VERSION@")
  126. # The location of the UseCTK.cmake file.
  127. SET(CTK_USE_FILE "@CTK_USE_FILE@")
  128. # CMake extension module directory
  129. SET(CTK_CMAKE_DIR "@CTK_CMAKE_DIR_CONFIG@")
  130. SET(CTK_CMAKE_UTILITIES_DIR "@CTK_CMAKE_UTILITIES_DIR_CONFIG@")
  131. # Update CMake module path so that calling "find_package(DCMTK)" works as expected
  132. # after calling "find_package(CTK)"
  133. # Ideally projects like DCMTK or PythonQt should provide both "Config" and "Use" files.
  134. set(CMAKE_MODULE_PATH
  135. ${CTK_CMAKE_UTILITIES_DIR}
  136. ${CMAKE_MODULE_PATH}
  137. )
  138. # TODO The list of available libraries.
  139. # TODO The list of available plugins.
  140. # TODO The list of available applications.
  141. # TODO The Doxygen configuration.
  142. #SET(CTK_DOXYGEN_HOME "@CTK_DOXYGEN_HOME_CONFIG@")
  143. # TODO Relative install paths in the CTK install tree
  144. SET(CTK_INSTALL_BIN_DIR "@CTK_INSTALL_BIN_DIR@")
  145. SET(CTK_INSTALL_INCLUDE_DIR "@CTK_INSTALL_INCLUDE_DIR@")
  146. SET(CTK_INSTALL_LIB_DIR "@CTK_INSTALL_LIB_DIR@")
  147. SET(CTK_INSTALL_QTPLUGIN_DIR "@CTK_INSTALL_QTPLUGIN_DIR@")
  148. #SET(CTK_INSTALL_PACKAGE_DIR "@CTK_INSTALL_PACKAGE_DIR@")
  149. # A CTK install tree always provides one build configuration. A CTK
  150. # build tree may provide either one or multiple build configurations
  151. # depending on the CMake generator used. Since CTK can be used either
  152. # from a build tree or an install tree it is useful for outside
  153. # projects to know the configurations available. If this
  154. # CTKConfig.cmake is in a CTK install tree CTK_CONFIGURATION_TYPES
  155. # will be empty and CTK_BUILD_TYPE will be set to the value of
  156. # CMAKE_BUILD_TYPE used to build CTK. If CTKConfig.cmake is in a CTK
  157. # build tree then CTK_CONFIGURATION_TYPES and CTK_BUILD_TYPE will have
  158. # values matching CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE for
  159. # that build tree (only one will ever be set).
  160. SET(CTK_CONFIGURATION_TYPES @CTK_CONFIGURATION_TYPES_CONFIG@)
  161. SET(CTK_BUILD_TYPE @CTK_BUILD_TYPE_CONFIG@)