CMakeLists.txt 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. project(CTKVisualizationXIP)
  2. #
  3. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  4. #
  5. set(KIT_export_directive "CTK_VISUALIZATION_XIP_EXPORT")
  6. # Source files
  7. set(KIT_SRCS
  8. ctkXIPAdaptor.cpp
  9. ctkXIPAdaptor.h
  10. )
  11. # Headers that should run through moc
  12. set(KIT_MOC_SRCS
  13. ctkXIPAdaptor.h
  14. )
  15. # UI files
  16. set(KIT_UI_FORMS
  17. )
  18. # Resources
  19. set(KIT_resources
  20. )
  21. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  22. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  23. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  24. ctkMacroBuildLib(
  25. NAME ${PROJECT_NAME}
  26. EXPORT_DIRECTIVE ${KIT_export_directive}
  27. SRCS ${KIT_SRCS}
  28. MOC_SRCS ${KIT_MOC_SRCS}
  29. UI_FORMS ${KIT_UI_FORMS}
  30. TARGET_LIBRARIES ${KIT_target_libraries}
  31. RESOURCES ${KIT_resources}
  32. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  33. )
  34. if(CTK_WRAP_PYTHONQT_LIGHT)
  35. ctkMacroBuildLibWrapper(
  36. TARGET ${PROJECT_NAME}
  37. SRCS ${KIT_SRCS}
  38. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  39. )
  40. endif()
  41. # Plugins
  42. #if(CTK_BUILD_QTDESIGNER_PLUGINS)
  43. # add_subdirectory(Plugins)
  44. #endif()
  45. # Testing
  46. if(BUILD_TESTING)
  47. #add_subdirectory(Testing)
  48. endif()