CMakeLists.txt 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. ctkCmdLineModuleFrontendQtWebKit_p.h
  15. )
  16. # Headers that should run through moc
  17. set(KIT_MOC_SRCS
  18. )
  19. # UI files
  20. set(KIT_UI_FORMS
  21. )
  22. # Resources
  23. set(KIT_resources
  24. Resources/ctkCmdLineModulesFrontendQtWebKit.qrc
  25. )
  26. set(QT_USE_QTWEBKIT 1)
  27. include(${QT_USE_FILE})
  28. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  29. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  30. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  31. ctkMacroBuildLib(
  32. NAME ${PROJECT_NAME}
  33. EXPORT_DIRECTIVE ${KIT_export_directive}
  34. INCLUDE_DIRECTORIES ${KIT_include_directories}
  35. SRCS ${KIT_SRCS}
  36. MOC_SRCS ${KIT_MOC_SRCS}
  37. UI_FORMS ${KIT_UI_FORMS}
  38. TARGET_LIBRARIES ${KIT_target_libraries}
  39. RESOURCES ${KIT_resources}
  40. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  41. )
  42. target_link_libraries(${PROJECT_NAME} ${QT_LIBRARIES})
  43. if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  44. ctkMacroBuildLibWrapper(
  45. TARGET ${PROJECT_NAME}
  46. SRCS ${KIT_SRCS}
  47. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  48. )
  49. endif()
  50. # Testing
  51. if(BUILD_TESTING)
  52. # add_subdirectory(Testing)
  53. endif()