瀏覽代碼

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 15 年之前
父節點
當前提交
130ae3629c
共有 2 個文件被更改,包括 9 次插入0 次删除
  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}