CMakeLists.txt 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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. ctkModuleDescriptionReaderInterface.cpp
  19. ctkModuleDescriptionReaderInterface.h
  20. ctkModuleDescriptionReader.h
  21. ctkModuleDescriptionReader.cpp
  22. ctkModuleDescriptionConverterInterface.h
  23. ctkModuleDescriptionConverter.h
  24. ctkModuleDescriptionConverter.cpp
  25. ctkModuleDescriptionExecutionInterface.h
  26. ctkModuleDescriptionExecution.h
  27. ctkModuleDescriptionExecution.cpp
  28. )
  29. # Headers that should run through moc
  30. SET(KIT_MOC_SRCS
  31. ctkModuleDescriptionReaderInterface.h
  32. ctkModuleDescriptionReader.h
  33. ctkModuleDescriptionConverterInterface.h
  34. ctkModuleDescriptionConverter.h
  35. ctkModuleDescriptionExecutionInterface.h
  36. ctkModuleDescriptionExecution.h
  37. )
  38. # UI files
  39. SET(KIT_UI_FORMS
  40. )
  41. # Resources
  42. SET(KIT_resources
  43. )
  44. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  45. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  46. ctkMacroGetTargetLibraries(KIT_target_libraries)
  47. ctkMacroBuildLib(
  48. NAME ${PROJECT_NAME}
  49. EXPORT_DIRECTIVE ${KIT_export_directive}
  50. INCLUDE_DIRECTORIES ${KIT_include_directories}
  51. SRCS ${KIT_SRCS}
  52. MOC_SRCS ${KIT_MOC_SRCS}
  53. UI_FORMS ${KIT_UI_FORMS}
  54. TARGET_LIBRARIES ${KIT_target_libraries}
  55. RESOURCES ${KIT_resources}
  56. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  57. )
  58. IF(CTK_WRAP_PYTHONQT_FULL OR CTK_WRAP_PYTHONQT_LIGHT)
  59. ctkMacroBuildLibWrapper(
  60. TARGET ${PROJECT_NAME}
  61. SRCS ${KIT_SRCS}
  62. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  63. )
  64. ENDIF()
  65. # Testing
  66. IF(BUILD_TESTING)
  67. ADD_SUBDIRECTORY(Testing)
  68. ENDIF(BUILD_TESTING)