Browse Source

ctkMacroWrapPythonQt internally includes ctkMacroSetPaths

ctkMacroSetPaths is referenced using CTK_CMAKE_DIR.

In case the macro is used by a different project including CTK,
the path to the macro will be properly resolved since CTK_CMAKE_DIR
is set in CTKConfig.cmake
Jean-Christophe Fillion-Robin 14 years ago
parent
commit
757ba1c2f1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      CMake/ctkMacroWrapPythonQt.cmake

+ 2 - 0
CMake/ctkMacroWrapPythonQt.cmake

@@ -63,6 +63,8 @@ FUNCTION(ctkMacroWrapPythonQt_log msg)
   FILE(APPEND "${CMAKE_CURRENT_BINARY_DIR}/ctkMacroWrapPythonQt_log.txt" "${msg}\n")
 ENDFUNCTION()
 
+INCLUDE(${CTK_CMAKE_DIR}/ctkMacroSetPaths.cmake)
+
 #
 # Convenient function allowing to invoke re.search(regex, string) using the given interpreter.
 # Note that is_matching will be set to True if there is a match