CMakeLists.txt 991 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. project(org_commontk_dah_cmdlinemoduleapp)
  2. set(PLUGIN_export_directive "org_commontk_dah_cmdlinemoduleapp_EXPORT")
  3. set(PLUGIN_SRCS
  4. ctkCommandLineModuleAppLogic_p.h
  5. ctkCommandLineModuleAppPlugin_p.h
  6. ctkCommandLineModuleAppLogic.cpp
  7. ctkCommandLineModuleAppPlugin.cpp
  8. )
  9. # Files which should be processed by Qts moc
  10. set(PLUGIN_MOC_SRCS
  11. ctkCommandLineModuleAppLogic_p.h
  12. ctkCommandLineModuleAppPlugin_p.h
  13. )
  14. # Qt Designer files which should be processed by Qts uic
  15. set(PLUGIN_UI_FORMS
  16. ctkCommandLineModuleAppWidget.ui
  17. )
  18. # QRC Files which should be compiled into the plugin
  19. set(PLUGIN_resources
  20. # resources/ctkCommandLineModuleApp.qrc
  21. )
  22. #Compute the plugin dependencies
  23. ctkFunctionGetTargetLibraries(PLUGIN_target_libraries)
  24. ctkMacroBuildPlugin(
  25. NAME ${PROJECT_NAME}
  26. EXPORT_DIRECTIVE ${PLUGIN_export_directive}
  27. SRCS ${PLUGIN_SRCS}
  28. MOC_SRCS ${PLUGIN_MOC_SRCS}
  29. UI_FORMS ${PLUGIN_UI_FORMS}
  30. RESOURCES ${PLUGIN_resources}
  31. TARGET_LIBRARIES ${PLUGIN_target_libraries}
  32. )