123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- PROJECT(CTKVisualizationVTKCore)
- #
- # 3rd party dependencies
- #
- INCLUDE(${VTK_USE_FILE})
- #
- # See CTK/CMake/ctkMacroBuildLib.cmake for details
- #
- SET(KIT_export_directive "CTK_VISUALIZATION_VTK_CORE_EXPORT")
-
- # Source files
- SET(KIT_SRCS
- ctkVTKColorTransferFunction.cpp
- ctkVTKColorTransferFunction.h
- ctkVTKCompositeFunction.cpp
- ctkVTKCompositeFunction.h
- ctkVTKConnection.cpp
- ctkVTKConnection.h
- ctkVTKErrorLogMessageHandler.cpp
- ctkVTKErrorLogMessageHandler.h
- ctkVTKHistogram.cpp
- ctkVTKHistogram.h
- ctkVTKLookupTable.cpp
- ctkVTKLookupTable.h
- ctkVTKObject.h
- ctkVTKObjectEventsObserver.cpp
- ctkVTKObjectEventsObserver.h
- ctkVTKPiecewiseFunction.cpp
- ctkVTKPiecewiseFunction.h
- vtkLightBoxRendererManager.cpp
- vtkLightBoxRendererManager.h
- )
- # Headers that should run through moc
- SET(KIT_MOC_SRCS
- ctkVTKColorTransferFunction.h
- ctkVTKConnection.h
- ctkVTKCompositeFunction.h
- ctkVTKLookupTable.h
- ctkVTKHistogram.h
- ctkVTKObjectEventsObserver.h
- ctkVTKPiecewiseFunction.h
- )
- # UI files
- SET(KIT_UI_FORMS
- )
- # Resources
- SET(KIT_resources
- )
- # Set VTK_LIBRARIES variable
- SET(VTK_LIBRARIES
- vtkCommon
- vtkFiltering
- vtkRendering
- vtkHybrid
- )
- IF(Q_WS_X11)
- # If the faster 'gold' linker is used, to avoid complaints about undefined symbol
- # 'XGetWindowAttributes', 'XCreateWindow', ..., let's link against X11 libraries.
- FIND_PACKAGE(X11)
- LIST(APPEND VTK_LIBRARIES ${X11_LIBRARIES})
- ENDIF()
- # Target libraries - See CMake/ctkFunctionGetTargetLibraries.cmake
- # The following macro will read the target libraries from the file 'target_libraries.cmake'
- ctkFunctionGetTargetLibraries(KIT_target_libraries)
- ctkMacroBuildLib(
- NAME ${PROJECT_NAME}
- EXPORT_DIRECTIVE ${KIT_export_directive}
- SRCS ${KIT_SRCS}
- MOC_SRCS ${KIT_MOC_SRCS}
- UI_FORMS ${KIT_UI_FORMS}
- TARGET_LIBRARIES ${KIT_target_libraries}
- RESOURCES ${KIT_resources}
- LIBRARY_TYPE ${CTK_LIBRARY_MODE}
- )
- # Plugins
- #IF(BUILD_QTDESIGNER_PLUGINS)
- # ADD_SUBDIRECTORY(Plugins)
- #ENDIF()
- # Testing
- IF(BUILD_TESTING)
- ADD_SUBDIRECTORY(Testing)
- ENDIF(BUILD_TESTING)
|