CMakeLists.txt 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. ctkMacroBuildLibWrapper(
  59. TARGET ${PROJECT_NAME}
  60. SRCS ${KIT_SRCS}
  61. WRAPPER_LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  62. )
  63. # Testing
  64. IF(BUILD_TESTING)
  65. ADD_SUBDIRECTORY(Testing)
  66. ENDIF(BUILD_TESTING)