CMakeLists.txt 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. project(CTKCommandLineModulesFrontendQtWebKit)
  2. #
  3. # 3rd party dependencies
  4. #
  5. #
  6. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  7. #
  8. set(KIT_export_directive "CTK_CMDLINEMODULEQTWEBKIT_EXPORT")
  9. # Additional directories to include
  10. # Source files
  11. set(KIT_SRCS
  12. ctkCmdLineModuleFrontendFactoryQtWebKit.cpp
  13. ctkCmdLineModuleFrontendQtWebKit.cpp
  14. )
  15. # Headers that should run through moc
  16. set(KIT_MOC_SRCS
  17. )
  18. # UI files
  19. set(KIT_UI_FORMS
  20. )
  21. # Resources
  22. set(KIT_resources
  23. Resources/ctkCmdLineModulesFrontendQtWebKit.qrc
  24. )
  25. set(QT_USE_QTWEBKIT 1)
  26. include(${QT_USE_FILE})
  27. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  28. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  29. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  30. ctkMacroBuildLib(
  31. NAME ${PROJECT_NAME}
  32. EXPORT_DIRECTIVE ${KIT_export_directive}
  33. INCLUDE_DIRECTORIES ${KIT_include_directories}
  34. SRCS ${KIT_SRCS}
  35. MOC_SRCS ${KIT_MOC_SRCS}
  36. UI_FORMS ${KIT_UI_FORMS}
  37. TARGET_LIBRARIES ${KIT_target_libraries}
  38. RESOURCES ${KIT_resources}
  39. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  40. )
  41. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  42. if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  43. ctkMacroBuildLibWrapper(
  44. TARGET ${PROJECT_NAME}
  45. SRCS ${KIT_SRCS}
  46. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  47. )
  48. endif()
  49. # Testing
  50. if(BUILD_TESTING)
  51. # add_subdirectory(Testing)
  52. endif()