CMakeLists.txt 1.6 KB

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