CMakeLists.txt 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. project(CTKPluginFramework)
  2. #
  3. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  4. #
  5. set(KIT_export_directive "CTK_PLUGINFW_EXPORT")
  6. # Source files
  7. set(KIT_SRCS
  8. ctkApplicationRunnable.cpp
  9. ctkBasicLocation_p.h
  10. ctkBasicLocation.cpp
  11. ctkDefaultApplicationLauncher_p.h
  12. ctkDefaultApplicationLauncher.cpp
  13. ctkDictionary.h
  14. ctkLDAPExpr.cpp
  15. ctkLDAPExpr_p.h
  16. ctkLDAPSearchFilter.cpp
  17. ctkLocationManager_p.h
  18. ctkLocationManager.cpp
  19. ctkPlugin.cpp
  20. ctkPluginAbstractTracked_p.h
  21. ctkPluginAbstractTracked.tpp
  22. ctkPluginActivator.h
  23. ctkPluginArchive.cpp
  24. ctkPluginArchive_p.h
  25. ctkPluginArchiveSQL_p.h
  26. ctkPluginArchiveSQL.cpp
  27. ctkPluginConstants.cpp
  28. ctkPluginContext.cpp
  29. ctkPluginContext_p.h
  30. ctkPluginDatabaseException.cpp
  31. ctkPluginEvent.cpp
  32. ctkPluginException.cpp
  33. ctkPluginFramework.cpp
  34. ctkPluginFramework_global.h
  35. ctkPluginFrameworkFactory.cpp
  36. ctkPluginFrameworkContext.cpp
  37. ctkPluginFrameworkContext_p.h
  38. ctkPluginFrameworkDebug.cpp
  39. ctkPluginFrameworkDebug_p.h
  40. ctkPluginFrameworkDebugOptions.cpp
  41. ctkPluginFrameworkDebugOptions_p.h
  42. ctkPluginFrameworkEvent.cpp
  43. ctkPluginFrameworkProperties.cpp
  44. ctkPluginFrameworkProperties_p.h
  45. ctkPluginFrameworkLauncher.cpp
  46. ctkPluginFrameworkListeners.cpp
  47. ctkPluginFrameworkListeners_p.h
  48. ctkPluginFramework_p.cpp
  49. ctkPluginFramework_p.h
  50. ctkPluginFrameworkUtil.cpp
  51. ctkPluginFrameworkUtil_p.h
  52. ctkPluginLocalization.cpp
  53. ctkPluginManifest.cpp
  54. ctkPluginManifest_p.h
  55. ctkPlugin_p.cpp
  56. ctkPlugin_p.h
  57. ctkPlugins.cpp
  58. ctkPlugins_p.h
  59. ctkPluginStorage_p.h
  60. ctkPluginStorageSQL.cpp
  61. ctkPluginStorageSQL_p.h
  62. ctkPluginTracker.h
  63. ctkPluginTracker.tpp
  64. ctkPluginTracker_p.h
  65. ctkPluginTracker_p.tpp
  66. ctkRequirePlugin.cpp
  67. ctkRequirePlugin_p.h
  68. ctkServiceEvent.cpp
  69. ctkServiceException.cpp
  70. ctkServiceFactory.h
  71. ctkServiceProperties_p.h
  72. ctkServiceProperties.cpp
  73. ctkServiceReference.cpp
  74. ctkServiceReference_p.cpp
  75. ctkServiceRegistration.cpp
  76. ctkServiceRegistration_p.cpp
  77. ctkServices.cpp
  78. ctkServices_p.h
  79. ctkServiceSlotEntry.cpp
  80. ctkServiceSlotEntry_p.h
  81. ctkServiceTracker.h
  82. ctkServiceTracker.tpp
  83. ctkServiceTrackerCustomizer.h
  84. ctkServiceTracker_p.h
  85. ctkServiceTracker_p.tpp
  86. ctkTrackedPlugin_p.h
  87. ctkTrackedPlugin.tpp
  88. ctkTrackedPluginListener_p.h
  89. ctkTrackedService_p.h
  90. ctkTrackedService.tpp
  91. ctkTrackedServiceListener_p.h
  92. ctkVersion.cpp
  93. ctkVersionRange.cpp
  94. ctkVersionRange_p.h
  95. # Services
  96. service/application/ctkApplicationDescriptor.cpp
  97. service/application/ctkApplicationException.cpp
  98. service/application/ctkApplicationHandle.cpp
  99. service/application/ctkApplicationLauncher.h
  100. service/cm/ctkConfiguration.cpp
  101. service/cm/ctkConfigurationAdmin.cpp
  102. service/cm/ctkConfigurationEvent.cpp
  103. service/cm/ctkConfigurationException.cpp
  104. service/cm/ctkConfigurationListener.h
  105. service/cm/ctkConfigurationPlugin.cpp
  106. service/cm/ctkManagedService.h
  107. service/cm/ctkManagedServiceFactory.h
  108. service/datalocation/ctkLocation.cpp
  109. service/debug/ctkDebugOptions.cpp
  110. service/debug/ctkDebugOptionsListener.h
  111. service/event/ctkEvent.cpp
  112. service/event/ctkEventAdmin.h
  113. service/event/ctkEventConstants.cpp
  114. service/event/ctkEventHandler.h
  115. service/log/ctkLogEntry.h
  116. service/log/ctkLogListener.h
  117. service/log/ctkLogReaderService.h
  118. service/log/ctkLogService.cpp
  119. service/log/ctkLogStream.cpp
  120. service/metatype/ctkAttributeDefinition.cpp
  121. service/metatype/ctkMetaTypeInformation.h
  122. service/metatype/ctkMetaTypeProvider.cpp
  123. service/metatype/ctkMetaTypeService.cpp
  124. service/metatype/ctkObjectClassDefinition.h
  125. )
  126. # Headers that should run through moc
  127. set(KIT_MOC_SRCS
  128. ctkBasicLocation_p.h
  129. ctkDefaultApplicationLauncher_p.h
  130. ctkPluginFrameworkDebugOptions_p.h
  131. ctkPluginFrameworkListeners_p.h
  132. ctkTrackedPluginListener_p.h
  133. ctkTrackedServiceListener_p.h
  134. )
  135. # UI files
  136. set(KIT_UI_FORMS
  137. )
  138. # Resources
  139. set(KIT_resources
  140. )
  141. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  142. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  143. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  144. if(CTK_QT_VERSION VERSION_GREATER "4")
  145. list(APPEND KIT_target_libraries Qt5::Sql Qt5::Concurrent)
  146. endif()
  147. # Create a MANIFEST.MF resource for the PluginFramework library,
  148. # pretending that is is a plugin (the system plugin)
  149. ctkFunctionGeneratePluginManifest(KIT_SRCS
  150. SYMBOLIC_NAME "system.plugin"
  151. VERSION "0.9.9"
  152. )
  153. ctkMacroBuildLib(
  154. NAME ${PROJECT_NAME}
  155. EXPORT_DIRECTIVE ${KIT_export_directive}
  156. INCLUDE_DIRECTORIES ${CTK_SUPERBUILD_BINARY_DIR}
  157. SRCS ${KIT_SRCS}
  158. MOC_SRCS ${KIT_MOC_SRCS}
  159. UI_FORMS ${KIT_UI_FORMS}
  160. TARGET_LIBRARIES ${KIT_target_libraries}
  161. RESOURCES ${KIT_resources}
  162. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  163. )
  164. if(CTK_WRAP_PYTHONQT_LIGHT)
  165. ctkMacroBuildLibWrapper(
  166. TARGET ${PROJECT_NAME}
  167. SRCS ${KIT_SRCS}
  168. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  169. )
  170. endif()
  171. # Testing
  172. if(BUILD_TESTING)
  173. add_subdirectory(Testing)
  174. # Compile source code snippets
  175. add_subdirectory(Documentation/Snippets)
  176. endif()