CMakeLists.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. project(CTKModuleDescription)
  2. #
  3. # 3rd party dependencies
  4. #
  5. #
  6. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  7. #
  8. set(KIT_export_directive "CTK_MODULDESC_EXPORT")
  9. # Additional directories to include
  10. # Source files
  11. set(KIT_SRCS
  12. ctkModuleDescription.h
  13. ctkModuleDescription.cpp
  14. ctkModuleParameter.h
  15. ctkModuleParameter.cpp
  16. ctkModuleParameterGroup.h
  17. ctkModuleParameterGroup.cpp
  18. ctkModuleParameterGroupValue.h
  19. ctkModuleParameterGroupValue.cpp
  20. ctkModuleParameterValue.h
  21. ctkModuleParameterValue.cpp
  22. ctkModuleDescriptionReaderInterface.cpp
  23. ctkModuleDescriptionReaderInterface.h
  24. ctkModuleDescriptionReader.h
  25. ctkModuleDescriptionReader.cpp
  26. ctkModuleDescriptionConverterInterface.h
  27. ctkModuleDescriptionConverter.h
  28. ctkModuleDescriptionConverter.cpp
  29. ctkModuleDescriptionExecutionInterface.h
  30. ctkModuleDescriptionExecution.h
  31. ctkModuleDescriptionExecution.cpp
  32. ctkModuleValues.h
  33. ctkModuleValues.cpp
  34. )
  35. # Headers that should run through moc
  36. set(KIT_MOC_SRCS
  37. ctkModuleDescriptionReaderInterface.h
  38. ctkModuleDescriptionReader.h
  39. ctkModuleDescriptionConverterInterface.h
  40. ctkModuleDescriptionConverter.h
  41. ctkModuleDescriptionExecutionInterface.h
  42. ctkModuleDescriptionExecution.h
  43. )
  44. # UI files
  45. set(KIT_UI_FORMS
  46. )
  47. # Resources
  48. set(KIT_resources
  49. )
  50. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  51. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  52. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  53. ctkMacroBuildLib(
  54. NAME ${PROJECT_NAME}
  55. EXPORT_DIRECTIVE ${KIT_export_directive}
  56. INCLUDE_DIRECTORIES ${KIT_include_directories}
  57. SRCS ${KIT_SRCS}
  58. MOC_SRCS ${KIT_MOC_SRCS}
  59. UI_FORMS ${KIT_UI_FORMS}
  60. TARGET_LIBRARIES ${KIT_target_libraries}
  61. RESOURCES ${KIT_resources}
  62. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  63. )
  64. if(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  65. ctkMacroBuildLibWrapper(
  66. TARGET ${PROJECT_NAME}
  67. SRCS ${KIT_SRCS}
  68. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  69. )
  70. endif()
  71. # Testing
  72. if(BUILD_TESTING)
  73. add_subdirectory(Testing)
  74. endif()