Commit 405e0521 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkRenderingFreeTypeFontConfig: update to the new module system

parent b84606e1
find_package(FontConfig REQUIRED)
vtk_object_factory_declare(
BASE vtkFreeTypeTools
OVERRIDE vtkFontConfigFreeTypeTools)
include_directories(${FONTCONFIG_INCLUDE_DIR})
vtk_object_factory_configure(
SOURCE_FILE vtk_object_factory_source
HEADER_FILE vtk_object_factory_header
EXPORT_MACRO "VTKRENDERINGFREETYPEFONTCONFIG_EXPORT")
include(vtkObjectFactory)
set(classes
vtkFontConfigFreeTypeTools)
set(Module_SRCS
vtkFontConfigFreeTypeTools.cxx
${CMAKE_CURRENT_BINARY_DIR}/vtkRenderingFreeTypeFontConfigObjectFactory.cxx
)
vtk_module_add_module(VTK::RenderingFreeTypeFontConfig
CLASSES ${classes}
SOURCES ${vtk_object_factory_source}
PRIVATE_HEADERS ${vtk_object_factory_header})
# Setup overrides
list(APPEND vtk_module_overrides "vtkFreeTypeTools")
set(vtk_module_vtkFreeTypeTools_override "vtkFontConfigFreeTypeTools")
vtk_object_factory_configure("${vtk_module_overrides}")
vtk_module_library(${vtk-module} ${Module_SRCS})
vtk_module_link_libraries(${vtk-module} LINK_PRIVATE ${FONTCONFIG_LIBRARIES})
vtk_module_find_package(PACKAGE FontConfig)
vtk_module_link(VTK::RenderingFreeTypeFontConfig
PRIVATE
FontConfig::FontConfig)
vtk_module(vtkRenderingFreeTypeFontConfig
IMPLEMENTS
vtkRenderingFreeType
TEST_DEPENDS
vtkChartsCore
vtkTestingRendering
vtkViewsContext2D
vtkRenderingContextOpenGL2
EXCLUDE_FROM_WRAPPING
EXCLUDE_FROM_PYTHON_WRAPPING
KIT
vtkRendering
DEPENDS
vtkRenderingFreeType
PRIVATE_DEPENDS
vtkCommonCore
vtkRenderingCore
)
NAME
VTK::RenderingFreeTypeFontConfig
LIBRARY_NAME
vtkRenderingFreeTypeFontConfig
KIT
VTK::Rendering
IMPLEMENTS
VTK::RenderingFreeType
DEPENDS
VTK::RenderingFreeType
PRIVATE_DEPENDS
VTK::CommonCore
VTK::RenderingCore
TEST_DEPENDS
VTK::ChartsCore
VTK::RenderingContextOpenGL2
VTK::TestingRendering
VTK::ViewsContext2D
EXCLUDE_WRAP
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment