CMakeLists.txt 1.3 KB

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