CTKConfig.cmake.in 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. #
  2. # CTKConfig.cmake - CTK CMake configuration file for external projects.
  3. #
  4. # This file is configured by CTK and used by the UseCTK.cmake module
  5. # to load CTK's settings for an external project.
  6. # Import CTK targets
  7. IF(NOT CTK_EXPORTS_INCLUDED)
  8. INCLUDE("@CTK_SUPERBUILD_BINARY_DIR@/CTKExports.cmake")
  9. SET(CTK_EXPORTS_INCLUDED 1)
  10. ENDIF()
  11. # Include CTK macros
  12. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetGccVersion.cmake")
  13. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionCheckCompilerFlags.cmake")
  14. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetCompilerVisibilityFlags.cmake")
  15. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroParseArguments.cmake")
  16. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroSetPaths.cmake")
  17. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroListFilter.cmake")
  18. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroBuildLibWrapper.cmake")
  19. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroBuildPlugin.cmake")
  20. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroBuildQtPlugin.cmake")
  21. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroTargetLibraries.cmake") # Import multiple macros
  22. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionExtractOptionNameAndValue.cmake")
  23. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroValidateBuildOptions.cmake")
  24. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGenerateDGraphInput.cmake")
  25. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGeneratePluginManifest.cmake")
  26. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGeneratePluginUseFile.cmake")
  27. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroGeneratePluginResourceFile.cmake")
  28. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetIncludeDirs.cmake")
  29. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetLibraryDirs.cmake")
  30. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionExtractPluginTargets.cmake")
  31. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetAllPluginTargets.cmake")
  32. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetTargetDependencies.cmake")
  33. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkFunctionGetPluginDependencies.cmake")
  34. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroSetupPlugins.cmake")
  35. INCLUDE("@CTK_CMAKE_DIR_CONFIG@/ctkMacroGenerateMocs.cmake")
  36. SET(CTK_EXPORT_HEADER_TEMPLATE "@CTK_EXPORT_HEADER_TEMPLATE@")
  37. # Directory containing the ctkConfig.h file
  38. SET(CTK_CONFIG_H_INCLUDE_DIR @CTK_CONFIG_H_INCLUDE_DIR@)
  39. # The CTK DGraph executable used to compute target dependency graphs
  40. SET(CTK_DGRAPH_EXECUTABLE "@DGraph_EXECUTABLE@")
  41. # List all libraries
  42. SET(CTK_LIBRARIES @CTK_LIBRARIES@)
  43. # List all CTK libraries wrapped with PythonQt
  44. SET(CTK_WRAPPED_LIBRARIES_PYTHONQT @CTK_WRAPPED_LIBRARIES_PYTHONQT@)
  45. # Include CTK Plugin specific variables
  46. INCLUDE("@CTK_PLUGIN_USE_FILE@")
  47. @CTK_CONFIG_INSTALL_ONLY@
  48. # Library specific include directories
  49. @CTK_LIBRARY_INCLUDE_DIRS_CONFIG@
  50. # Library specific library directories
  51. @CTK_LIBRARY_LIBRARY_DIRS_CONFIG@
  52. # The CTK include file directories.
  53. SET(CTK_INCLUDE_DIRS "@CTK_BUILD_DIR@;@CTK_INCLUDE_DIRS_CONFIG@")
  54. # The CTK library directories. Note that if
  55. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  56. # will be the parent directories under which there will be a directory
  57. # of runtime binaries for each configuration type.
  58. SET(CTK_LIBRARY_DIRS "@CTK_LIBRARY_DIRS_CONFIG@")
  59. # The CTK external project libraries.
  60. SET(CTK_EXTERNAL_LIBRARIES "@CTK_EXTERNAL_LIBRARIES_CONFIG@")
  61. # The CTK external project library directories. Note that if
  62. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  63. # will be the parent directories under which there will be a directory
  64. # of runtime binaries for each configuration type.
  65. SET(CTK_EXTERNAL_LIBRARY_DIRS "@CTK_EXTERNAL_LIBRARY_DIRS_CONFIG@")
  66. # The CTK binary executable directories. Note that if
  67. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  68. # will be the parent directories under which there will be a directory
  69. # of runtime binaries for each configuration type.
  70. SET(CTK_EXECUTABLE_DIRS "@CTK_EXECUTABLE_DIRS_CONFIG@")
  71. # The CTK runtime library directories. Note that if
  72. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  73. # will be the parent directories under which there will be a directory
  74. # of runtime libraries for each configuration type.
  75. SET(CTK_RUNTIME_LIBRARY_DIRS "@CTK_RUNTIME_LIBRARY_DIRS_CONFIG@")
  76. # The CTK Qt designer plugin directory. Note that if
  77. # CTK_CONFIGURATION_TYPES is set (see below) then these directories
  78. # will be the parent directories under which there will be a directory
  79. # of runtime libraries for each configuration type.
  80. SET(CTK_QTDESIGNERPLUGINS_DIR "@CTK_QTDESIGNERPLUGINS_DIR_CONFIG@")
  81. # CTK external projects variables
  82. @CTK_SUPERBUILD_EP_VARS_CONFIG@
  83. # Qt configuration
  84. SET(CTK_QT_RCC_EXECUTABLE "@QT_RCC_EXECUTABLE@")
  85. SET(CTK_QT_MOC_EXECUTABLE "@QT_MOC_EXECUTABLE@")
  86. SET(CTK_QT_UIC_EXECUTABLE "@QT_UIC_EXECUTABLE@")
  87. SET(CTK_QT_QMAKE_EXECUTABLE "@QT_QMAKE_EXECUTABLE@")
  88. # The CTK version number
  89. SET(CTK_MAJOR_VERSION "@CTK_MAJOR_VERSION@")
  90. SET(CTK_MINOR_VERSION "@CTK_MINOR_VERSION@")
  91. SET(CTK_PATCH_VERSION "@CTK_PATCH_VERSION@")
  92. # The location of the UseCTK.cmake file.
  93. SET(CTK_USE_FILE "@CTK_USE_FILE@")
  94. # CMake extension module directory
  95. SET(CTK_CMAKE_DIR "@CTK_CMAKE_DIR_CONFIG@")
  96. SET(CTK_CMAKE_UTILITIES_DIR "@CTK_CMAKE_UTILITIES_DIR_CONFIG@")
  97. # Update CMake module path so that calling "find_package(DCMTK)" works as expected
  98. # after calling "find_package(CTK)"
  99. # Ideally projects like DCMTK or PythonQt should provide both "Config" and "Use" files.
  100. set(CMAKE_MODULE_PATH
  101. ${CTK_CMAKE_UTILITIES_DIR}
  102. ${CMAKE_MODULE_PATH}
  103. )
  104. # TODO Relative install paths in the CTK install tree
  105. SET(CTK_INSTALL_BIN_DIR "@CTK_INSTALL_BIN_DIR@")
  106. SET(CTK_INSTALL_INCLUDE_DIR "@CTK_INSTALL_INCLUDE_DIR@")
  107. SET(CTK_INSTALL_LIB_DIR "@CTK_INSTALL_LIB_DIR@")
  108. SET(CTK_INSTALL_PLUGIN_INCLUDE_DIR "@CTK_INSTALL_PLUGIN_INCLUDE_DIR@")
  109. SET(CTK_INSTALL_PLUGIN_DIR "@CTK_INSTALL_PLUGIN_DIR@")
  110. SET(CTK_INSTALL_QTPLUGIN_DIR "@CTK_INSTALL_QTPLUGIN_DIR@")
  111. #SET(CTK_INSTALL_PACKAGE_DIR "@CTK_INSTALL_PACKAGE_DIR@")
  112. # A CTK install tree always provides one build configuration. A CTK
  113. # build tree may provide either one or multiple build configurations
  114. # depending on the CMake generator used. Since CTK can be used either
  115. # from a build tree or an install tree it is useful for outside
  116. # projects to know the configurations available. If this
  117. # CTKConfig.cmake is in a CTK install tree CTK_CONFIGURATION_TYPES
  118. # will be empty and CTK_BUILD_TYPE will be set to the value of
  119. # CMAKE_BUILD_TYPE used to build CTK. If CTKConfig.cmake is in a CTK
  120. # build tree then CTK_CONFIGURATION_TYPES and CTK_BUILD_TYPE will have
  121. # values matching CMAKE_CONFIGURATION_TYPES and CMAKE_BUILD_TYPE for
  122. # that build tree (only one will ever be set).
  123. SET(CTK_CONFIGURATION_TYPES @CTK_CONFIGURATION_TYPES_CONFIG@)
  124. SET(CTK_BUILD_TYPE @CTK_BUILD_TYPE_CONFIG@)