CMakeLists.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. # Additional directories to include
  11. SET(KIT_include_directories
  12. )
  13. # Source files
  14. SET(KIT_SRCS
  15. ctkVTKColorTransferFunction.cpp
  16. ctkVTKColorTransferFunction.h
  17. ctkVTKCompositeFunction.cpp
  18. ctkVTKCompositeFunction.h
  19. ctkVTKConnection.cpp
  20. ctkVTKConnection.h
  21. ctkVTKHistogram.cpp
  22. ctkVTKHistogram.h
  23. ctkVTKLookupTable.cpp
  24. ctkVTKLookupTable.h
  25. ctkVTKObject.h
  26. ctkVTKObjectEventsObserver.cpp
  27. ctkVTKObjectEventsObserver.h
  28. ctkVTKPiecewiseFunction.cpp
  29. ctkVTKPiecewiseFunction.h
  30. vtkLightBoxRendererManager.cpp
  31. vtkLightBoxRendererManager.h
  32. )
  33. # Headers that should run through moc
  34. SET(KIT_MOC_SRCS
  35. ctkVTKColorTransferFunction.h
  36. ctkVTKConnection.h
  37. ctkVTKCompositeFunction.h
  38. ctkVTKLookupTable.h
  39. ctkVTKHistogram.h
  40. ctkVTKObjectEventsObserver.h
  41. ctkVTKPiecewiseFunction.h
  42. )
  43. # UI files
  44. SET(KIT_UI_FORMS
  45. )
  46. # Resources
  47. SET(KIT_resources
  48. )
  49. # Set VTK_LIBRARIES variable
  50. SET(VTK_LIBRARIES
  51. vtkCommon
  52. vtkFiltering
  53. vtkRendering
  54. vtkHybrid
  55. )
  56. # Target libraries - See CMake/ctkMacroGetTargetLibraries.cmake
  57. # The following macro will read the target libraries from the file 'target_libraries.cmake'
  58. ctkMacroGetTargetLibraries(KIT_target_libraries)
  59. ctkMacroBuildLib(
  60. NAME ${PROJECT_NAME}
  61. EXPORT_DIRECTIVE ${KIT_export_directive}
  62. INCLUDE_DIRECTORIES ${KIT_include_directories}
  63. SRCS ${KIT_SRCS}
  64. MOC_SRCS ${KIT_MOC_SRCS}
  65. UI_FORMS ${KIT_UI_FORMS}
  66. TARGET_LIBRARIES ${KIT_target_libraries}
  67. RESOURCES ${KIT_resources}
  68. LIBRARY_TYPE ${CTK_LIBRARY_MODE}
  69. )
  70. # Plugins
  71. #ADD_SUBDIRECTORY(Plugins)
  72. # Testing
  73. IF(BUILD_TESTING)
  74. ADD_SUBDIRECTORY(Testing)
  75. ENDIF(BUILD_TESTING)