CMakeLists.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. ctkCaseInsensitiveString.cpp
  9. ctkDictionary.cpp
  10. ctkLDAPExpr.cpp
  11. ctkLDAPExpr_p.h
  12. ctkLDAPSearchFilter.cpp
  13. ctkPlugin.cpp
  14. ctkPluginAbstractTracked_p.h
  15. ctkPluginAbstractTracked.tpp
  16. ctkPluginActivator.h
  17. ctkPluginArchive.cpp
  18. ctkPluginArchive_p.h
  19. ctkPluginConstants.cpp
  20. ctkPluginContext.cpp
  21. ctkPluginContext_p.h
  22. ctkPluginDatabase.cpp
  23. ctkPluginDatabase_p.h
  24. ctkPluginDatabaseException.cpp
  25. ctkPluginEvent.cpp
  26. ctkPluginException.cpp
  27. ctkPluginFramework.cpp
  28. ctkPluginFramework_global.h
  29. ctkPluginFrameworkFactory.cpp
  30. ctkPluginFrameworkContext.cpp
  31. ctkPluginFrameworkContext_p.h
  32. ctkPluginFrameworkEvent.cpp
  33. ctkPluginFrameworkLauncher.cpp
  34. ctkPluginFrameworkListeners.cpp
  35. ctkPluginFrameworkListeners_p.h
  36. ctkPluginFrameworkPrivate.cpp
  37. ctkPluginFrameworkPrivate_p.h
  38. ctkPluginFrameworkUtil.cpp
  39. ctkPluginFrameworkUtil_p.h
  40. ctkPluginLocalization.cpp
  41. ctkPluginManifest.cpp
  42. ctkPluginManifest_p.h
  43. ctkPluginPrivate.cpp
  44. ctkPluginPrivate_p.h
  45. ctkPlugins.cpp
  46. ctkPlugins_p.h
  47. ctkPluginStorage.cpp
  48. ctkPluginStorage_p.h
  49. ctkPluginTracker.h
  50. ctkPluginTracker.tpp
  51. ctkPluginTrackerPrivate.h
  52. ctkPluginTrackerPrivate.tpp
  53. ctkRequirePlugin.cpp
  54. ctkRequirePlugin_p.h
  55. ctkRuntimeException.cpp
  56. ctkServiceEvent.cpp
  57. ctkServiceException.cpp
  58. ctkServiceFactory.h
  59. ctkServiceReference.cpp
  60. ctkServiceReferencePrivate.cpp
  61. ctkServiceRegistration.cpp
  62. ctkServiceRegistrationPrivate.cpp
  63. ctkServices.cpp
  64. ctkServices_p.h
  65. ctkServiceSlotEntry.cpp
  66. ctkServiceSlotEntry_p.h
  67. ctkServiceTracker.h
  68. ctkServiceTracker.tpp
  69. ctkServiceTrackerCustomizer.h
  70. ctkServiceTrackerPrivate.h
  71. ctkServiceTrackerPrivate.tpp
  72. ctkTrackedPlugin_p.h
  73. ctkTrackedPlugin.tpp
  74. ctkTrackedPluginListener_p.h
  75. ctkTrackedService_p.h
  76. ctkTrackedService.tpp
  77. ctkTrackedServiceListener_p.h
  78. ctkVersion.cpp
  79. ctkVersionRange.cpp
  80. ctkVersionRange_p.h
  81. # Services
  82. service/cm/ctkConfiguration.cpp
  83. service/cm/ctkConfigurationAdmin.cpp
  84. service/cm/ctkConfigurationEvent.cpp
  85. service/cm/ctkConfigurationException.cpp
  86. service/cm/ctkConfigurationListener.h
  87. service/cm/ctkConfigurationPlugin.cpp
  88. service/cm/ctkManagedService.h
  89. service/cm/ctkManagedServiceFactory.h
  90. service/event/ctkEvent.cpp
  91. service/event/ctkEventAdmin.h
  92. service/event/ctkEventConstants.cpp
  93. service/event/ctkEventHandler.h
  94. service/log/ctkLogEntry.h
  95. service/log/ctkLogListener.h
  96. service/log/ctkLogReaderService.h
  97. service/log/ctkLogService.cpp
  98. service/log/ctkLogStream.cpp
  99. service/metatype/ctkAttributeDefinition.cpp
  100. service/metatype/ctkMetaTypeInformation.h
  101. service/metatype/ctkMetaTypeProvider.cpp
  102. service/metatype/ctkMetaTypeService.cpp
  103. service/metatype/ctkObjectClassDefinition.h
  104. )
  105. # Headers that should run through moc
  106. SET(KIT_MOC_SRCS
  107. ctkPluginFrameworkListeners_p.h
  108. ctkTrackedPluginListener_p.h
  109. ctkTrackedServiceListener_p.h
  110. )
  111. # UI files
  112. SET(KIT_UI_FORMS
  113. )
  114. # Resources
  115. SET(KIT_resources
  116. )
  117. # Create a MANIFEST.MF resource for the PluginFramework library,
  118. # pretending that is is a plugin (the system plugin)
  119. ctkFunctionGeneratePluginManifest(KIT_SRCS
  120. SYMBOLIC_NAME "system.plugin"
  121. VERSION "0.9.9"
  122. )
  123. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  124. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  125. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  126. ctkMacroBuildLib(
  127. NAME ${PROJECT_NAME}
  128. EXPORT_DIRECTIVE ${KIT_export_directive}
  129. INCLUDE_DIRECTORIES ${CTK_SUPERBUILD_BINARY_DIR}
  130. SRCS ${KIT_SRCS}
  131. MOC_SRCS ${KIT_MOC_SRCS}
  132. UI_FORMS ${KIT_UI_FORMS}
  133. TARGET_LIBRARIES ${KIT_target_libraries}
  134. RESOURCES ${KIT_resources}
  135. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  136. )
  137. # Testing
  138. IF(BUILD_TESTING)
  139. ADD_SUBDIRECTORY(Testing)
  140. ENDIF(BUILD_TESTING)