]> Creatis software - cpPlugins.git/blobdiff - cmake/cpPlugins_Functions.cmake
..
[cpPlugins.git] / cmake / cpPlugins_Functions.cmake
index d2ec9ca333e5c5cb1c62da9533e4aa1743e2ad8b..68c2b882f437be89d3ef09a7259132b9852ab7f0 100644 (file)
@@ -41,7 +41,13 @@ ADD_CUSTOM_COMMAND(
   DEPENDS ${cpPlugins_HostCreator_APP} ${headers}
   COMMAND ${cpPlugins_HostCreator_APP} ${host} ${headers}
   )
-ADD_LIBRARY(${libname} SHARED ${host} ${sources} ${other_sources})
+SET(qtsources)
+FOREACH(qth ${qtheaders})
+  QT4_WRAP_CPP(qth_moc ${qth})
+  SET(qtsources "${qtsources};${qth_moc}")
+ENDFOREACH(qth)
+
+ADD_LIBRARY(${libname} SHARED ${host} ${sources} ${other_sources} ${qtsources})
 SET_TARGET_PROPERTIES(
   ${libname} PROPERTIES
   VERSION "${ver}"