CMakeLists.txt 3.8 KB

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