CMakeLists.txt 662 B

1234567891011121314151617181920212223242526272829303132
  1. PROJECT(org_commontk_eventbus)
  2. SET(PLUGIN_export_directive "org_commontk_eventbus_EXPORT")
  3. SET(PLUGIN_SRCS
  4. ctkEventBusImpl.cxx
  5. ctkEventBusPlugin.cxx
  6. )
  7. SET(PLUGIN_MOC_SRCS
  8. ctkEventBusImpl_p.h
  9. ctkEventBusPlugin_p.h
  10. ctkEventHandlerWrapper_p.h
  11. )
  12. SET(PLUGIN_resources
  13. org_commontk_eventbus.qrc
  14. )
  15. SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/Plugins)
  16. ctkMacroGetTargetLibraries(PLUGIN_target_libraries)
  17. ctkMacroBuildPlugin(
  18. NAME ${PROJECT_NAME}
  19. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  20. SRCS ${PLUGIN_SRCS}
  21. MOC_SRCS ${PLUGIN_MOC_SRCS}
  22. RESOURCES ${PLUGIN_resources}
  23. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  24. )