CMakeLists.txt 3.7 KB

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