CMakeLists.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. PROJECT(CTKCore)
  2. # CMake modules
  3. SET(CMAKE_MODULE_PATH ${CTKCore_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})
  4. # CMake Macros
  5. INCLUDE(CMake/ctkMacroBFDCheck.cmake)
  6. #
  7. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  8. #
  9. SET(KIT_export_directive "CTK_CORE_EXPORT")
  10. # Source files
  11. SET(KIT_SRCS
  12. ctkAbstractFactory.h
  13. ctkAbstractFactory.tpp
  14. ctkAbstractObjectFactory.h
  15. ctkAbstractObjectFactory.tpp
  16. ctkAbstractPluginFactory.h
  17. ctkAbstractPluginFactory.tpp
  18. ctkAbstractQObjectFactory.h
  19. ctkAbstractQObjectFactory.tpp
  20. ctkAbstractLibraryFactory.h
  21. ctkAbstractLibraryFactory.tpp
  22. ctkCommandLineParser.cpp
  23. ctkCommandLineParser.h
  24. ctkDependencyGraph.cpp
  25. ctkDependencyGraph.h
  26. ctkLogger.cpp
  27. ctkLogger.h
  28. ctkHistogram.cpp
  29. ctkHistogram.h
  30. ctkModelTester.cpp
  31. ctkModelTester.h
  32. ctkPimpl.h
  33. ctkSingleton.h
  34. ctkTransferFunction.cpp
  35. ctkTransferFunction.h
  36. ctkTransferFunctionRepresentation.cpp
  37. ctkTransferFunctionRepresentation.h
  38. ctkUtils.cpp
  39. ctkUtils.h
  40. ctkWorkflow.h
  41. ctkWorkflow.cpp
  42. ctkWorkflowStep.h
  43. ctkWorkflowStep.cpp
  44. ctkWorkflowStep_p.h
  45. ctkWorkflowTransitions.h
  46. )
  47. IF(CTK_HAVE_BFD)
  48. LIST(APPEND KIT_SRCS
  49. ctkBinaryFileDescriptor.cpp
  50. ctkBinaryFileDescriptor.h
  51. )
  52. ENDIF()
  53. # Headers that should run through moc
  54. SET(KIT_MOC_SRCS
  55. ctkLogger.h
  56. ctkHistogram.h
  57. ctkModelTester.h
  58. ctkTransferFunction.h
  59. ctkTransferFunctionRepresentation.h
  60. ctkWorkflow.h
  61. ctkWorkflowStep_p.h
  62. ctkWorkflowTransitions.h
  63. )
  64. # UI files
  65. SET(KIT_UI_FORMS
  66. )
  67. # Resources
  68. SET(KIT_resources
  69. )
  70. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  71. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  72. SET(KIT_target_libraries)
  73. ctkMacroGetTargetLibraries(KIT_target_libraries)
  74. ctkMacroBuildLib(
  75. NAME ${PROJECT_NAME}
  76. EXPORT_DIRECTIVE ${KIT_export_directive}
  77. SRCS ${KIT_SRCS}
  78. MOC_SRCS ${KIT_MOC_SRCS}
  79. UI_FORMS ${KIT_UI_FORMS}
  80. TARGET_LIBRARIES ${KIT_target_libraries}
  81. RESOURCES ${KIT_resources}
  82. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  83. )
  84. # Testing
  85. IF(BUILD_TESTING)
  86. ADD_SUBDIRECTORY(Testing)
  87. ENDIF(BUILD_TESTING)