CMakeLists.txt 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. PROJECT(CTKCore)
  2. #
  3. # 3rd party dependencies
  4. #
  5. INCLUDE(${Log4Qt_USE_FILE})
  6. # CMake modules
  7. SET(CMAKE_MODULE_PATH ${CTKCore_SOURCE_DIR}/CMake ${CMAKE_MODULE_PATH})
  8. # CMake Macros
  9. INCLUDE(CMake/ctkMacroBFDCheck.cmake) # HAVE_BFD will be set to True if it applies
  10. #
  11. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  12. #
  13. SET(KIT_export_directive "CTK_CORE_EXPORT")
  14. # Source files
  15. SET(KIT_SRCS
  16. ctkAbstractFactory.h
  17. ctkAbstractFactory.tpp
  18. ctkAbstractFileBasedFactory.h
  19. ctkAbstractFileBasedFactory.tpp
  20. ctkAbstractObjectFactory.h
  21. ctkAbstractObjectFactory.tpp
  22. ctkAbstractPluginFactory.h
  23. ctkAbstractPluginFactory.tpp
  24. ctkAbstractQObjectFactory.h
  25. ctkAbstractQObjectFactory.tpp
  26. ctkAbstractLibraryFactory.h
  27. ctkAbstractLibraryFactory.tpp
  28. ctkCallback.cpp
  29. ctkCallback.h
  30. ctkCommandLineParser.cpp
  31. ctkCommandLineParser.h
  32. ctkDependencyGraph.cpp
  33. ctkDependencyGraph.h
  34. ctkErrorLogModel.cpp
  35. ctkErrorLogModel.h
  36. ctkErrorLogFDMessageHandler.cpp
  37. ctkErrorLogFDMessageHandler.h
  38. ctkErrorLogFDMessageHandler_p.h
  39. ctkErrorLogQtMessageHandler.cpp
  40. ctkErrorLogQtMessageHandler.h
  41. ctkErrorLogStreamMessageHandler.cpp
  42. ctkErrorLogStreamMessageHandler.h
  43. ctkLogger.cpp
  44. ctkLogger.h
  45. ctkHistogram.cpp
  46. ctkHistogram.h
  47. ctkModelTester.cpp
  48. ctkModelTester.h
  49. ctkPimpl.h
  50. ctkSingleton.h
  51. ctkTransferFunction.cpp
  52. ctkTransferFunction.h
  53. ctkTransferFunctionRepresentation.cpp
  54. ctkTransferFunctionRepresentation.h
  55. ctkUtils.cpp
  56. ctkUtils.h
  57. ctkWorkflow.h
  58. ctkWorkflow.cpp
  59. ctkWorkflow_p.h
  60. ctkWorkflowStep.h
  61. ctkWorkflowStep.cpp
  62. ctkWorkflowStep_p.h
  63. ctkWorkflowTransitions.h
  64. )
  65. IF(HAVE_BFD)
  66. LIST(APPEND KIT_SRCS
  67. ctkBinaryFileDescriptor.cpp
  68. ctkBinaryFileDescriptor.h
  69. )
  70. ENDIF()
  71. IF(CTK_WRAP_PYTHONQT_LIGHT)
  72. LIST(APPEND KIT_SRCS
  73. ctkCorePythonQtDecorators.h
  74. )
  75. # Let's make sure the decorator are not wrapped !
  76. SET_SOURCE_FILES_PROPERTIES(
  77. ctkCorePythonQtDecorators.h
  78. WRAP_EXCLUDE
  79. )
  80. ENDIF()
  81. # Headers that should run through moc
  82. SET(KIT_MOC_SRCS
  83. ctkCallback.h
  84. ctkCommandLineParser.h
  85. ctkErrorLogFDMessageHandler_p.h
  86. ctkErrorLogModel.h
  87. ctkLogger.h
  88. ctkHistogram.h
  89. ctkModelTester.h
  90. ctkTransferFunction.h
  91. ctkTransferFunctionRepresentation.h
  92. ctkWorkflow.h
  93. ctkWorkflow_p.h
  94. ctkWorkflowStep_p.h
  95. ctkWorkflowTransitions.h
  96. )
  97. IF(CTK_WRAP_PYTHONQT_LIGHT)
  98. LIST(APPEND KIT_MOC_SRCS
  99. ctkCorePythonQtDecorators.h
  100. )
  101. ENDIF()
  102. # UI files
  103. SET(KIT_UI_FORMS
  104. )
  105. # Resources
  106. SET(KIT_resources
  107. )
  108. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  109. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  110. SET(KIT_target_libraries)
  111. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  112. ctkMacroBuildLib(
  113. NAME ${PROJECT_NAME}
  114. EXPORT_DIRECTIVE ${KIT_export_directive}
  115. SRCS ${KIT_SRCS}
  116. MOC_SRCS ${KIT_MOC_SRCS}
  117. UI_FORMS ${KIT_UI_FORMS}
  118. TARGET_LIBRARIES ${KIT_target_libraries}
  119. RESOURCES ${KIT_resources}
  120. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  121. )
  122. # Testing
  123. IF(BUILD_TESTING)
  124. ADD_SUBDIRECTORY(Testing)
  125. ENDIF(BUILD_TESTING)