Parcourir la source

ENH: Added variable CTK_QTDESIGNERPLUGINS_DIR to CTKConfig.cmake.in

This allow to expose the location of the QtDesigner plugin to project
using FindCTK
Jean-Christophe Fillion-Robin il y a 15 ans
Parent
commit
130ae3629c
2 fichiers modifiés avec 9 ajouts et 0 suppressions
  1. 6 0
      CTKConfig.cmake.in
  2. 3 0
      Utilities/LastConfigureStep/CTKGenerateCTKConfig.cmake

+ 6 - 0
CTKConfig.cmake.in

@@ -23,6 +23,12 @@ SET(CTK_EXECUTABLE_DIRS "@CTK_EXECUTABLE_DIRS_CONFIG@")
 # will be the parent directories under which there will be a directory
 # of runtime libraries for each configuration type.
 SET(CTK_RUNTIME_LIBRARY_DIRS "@CTK_RUNTIME_LIBRARY_DIRS_CONFIG@")
+
+# The CTK Qt designer plugin directory. Note that if
+# CTK_CONFIGURATION_TYPES is set (see below) then these directories
+# will be the parent directories under which there will be a directory
+# of runtime libraries for each configuration type.
+SET(CTK_QTDESIGNERPLUGINS_DIR "@CTK_QTDESIGNERPLUGINS_DIR_CONFIG@")
  
 # The CTK version number
 SET(CTK_MAJOR_VERSION "@CTK_MAJOR_VERSION@")

+ 3 - 0
Utilities/LastConfigureStep/CTKGenerateCTKConfig.cmake

@@ -38,6 +38,9 @@ SET(CTK_RUNTIME_LIBRARY_DIRS_CONFIG ${LIBRARY_OUTPUT_PATH})
 # Binary executable directory.
 SET(CTK_EXECUTABLE_DIRS_CONFIG ${EXECUTABLE_OUTPUT_PATH})
 
+# QtDesigner plugins directory
+SET(CTK_QTDESIGNERPLUGINS_DIR_CONFIG ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
+
 # Determine the include directories needed.
 SET(CTK_INCLUDE_DIRS_CONFIG
   ${CTK_BASE_INCLUDE_DIRS}