CMakeLists.txt 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. PROJECT(CTKVisualizationVTKCore)
  2. #
  3. # 3rd party dependencies
  4. #
  5. INCLUDE(${VTK_USE_FILE})
  6. #
  7. # See CTK/CMake/ctkMacroBuildLib.cmake for details
  8. #
  9. SET(KIT_export_directive "CTK_VISUALIZATION_VTK_CORE_EXPORT")
  10. # Source files
  11. SET(KIT_SRCS
  12. ctkVTKColorTransferFunction.cpp
  13. ctkVTKColorTransferFunction.h
  14. ctkVTKCompositeFunction.cpp
  15. ctkVTKCompositeFunction.h
  16. ctkVTKConnection.cpp
  17. ctkVTKConnection.h
  18. ctkVTKErrorLogMessageHandler.cpp
  19. ctkVTKErrorLogMessageHandler.h
  20. ctkVTKHistogram.cpp
  21. ctkVTKHistogram.h
  22. ctkVTKLookupTable.cpp
  23. ctkVTKLookupTable.h
  24. ctkVTKObject.h
  25. ctkVTKObjectEventsObserver.cpp
  26. ctkVTKObjectEventsObserver.h
  27. ctkVTKPiecewiseFunction.cpp
  28. ctkVTKPiecewiseFunction.h
  29. vtkLightBoxRendererManager.cpp
  30. vtkLightBoxRendererManager.h
  31. )
  32. # Headers that should run through moc
  33. SET(KIT_MOC_SRCS
  34. ctkVTKColorTransferFunction.h
  35. ctkVTKConnection.h
  36. ctkVTKCompositeFunction.h
  37. ctkVTKLookupTable.h
  38. ctkVTKHistogram.h
  39. ctkVTKObjectEventsObserver.h
  40. ctkVTKPiecewiseFunction.h
  41. )
  42. # UI files
  43. SET(KIT_UI_FORMS
  44. )
  45. # Resources
  46. SET(KIT_resources
  47. )
  48. # Set VTK_LIBRARIES variable
  49. SET(VTK_LIBRARIES
  50. vtkCommon
  51. vtkFiltering
  52. vtkRendering
  53. vtkHybrid
  54. )
  55. IF(Q_WS_X11)
  56. # If the faster 'gold' linker is used, to avoid complaints about undefined symbol
  57. # 'XGetWindowAttributes', 'XCreateWindow', ..., let's link against X11 libraries.
  58. FIND_PACKAGE(X11)
  59. LIST(APPEND VTK_LIBRARIES ${X11_LIBRARIES})
  60. ENDIF()
  61. # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
  62. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  63. ctkFunctionGetTargetLibraries(KIT_target_libraries)
  64. ctkMacroBuildLib(
  65. NAME ${PROJECT_NAME}
  66. EXPORT_DIRECTIVE ${KIT_export_directive}
  67. SRCS ${KIT_SRCS}
  68. MOC_SRCS ${KIT_MOC_SRCS}
  69. UI_FORMS ${KIT_UI_FORMS}
  70. TARGET_LIBRARIES ${KIT_target_libraries}
  71. RESOURCES ${KIT_resources}
  72. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  73. )
  74. # Plugins
  75. #IF(BUILD_QTDESIGNER_PLUGINS)
  76. # ADD_SUBDIRECTORY(Plugins)
  77. #ENDIF()
  78. # Testing
  79. IF(BUILD_TESTING)
  80. ADD_SUBDIRECTORY(Testing)
  81. ENDIF(BUILD_TESTING)