Pārlūkot izejas kodu

Explicitly include the Qt use file again.

Sascha Zelzer 12 gadi atpakaļ
vecāks
revīzija
c5e0e862ca
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      CMake/ctkMacroBuildLib.cmake

+ 4 - 1
CMake/ctkMacroBuildLib.cmake

@@ -50,7 +50,7 @@ macro(ctkMacroBuildLib)
 
   # Define library name
   set(lib_name ${MY_NAME})
-  
+
   # Library target names must not contain a '_' (reserved for plug-in target names)
   if(lib_name MATCHES _)
     message(FATAL_ERROR "The library name ${lib_name} must not contain a '_' character.")
@@ -77,6 +77,9 @@ macro(ctkMacroBuildLib)
   #  message(i:${i})
   #endforeach()
 
+  # Add Qt include dirs and defines
+  include(${QT_USE_FILE})
+
   # Add the library directories from the external project
   ctkFunctionGetLibraryDirs(my_library_dirs ${lib_name})