Commit 7b4abafd authored by Ben Boeckel's avatar Ben Boeckel
Browse files

vtkIOCityGML: update to the new module system

parent a1555649
set(Module_SRCS vtkCityGMLReader.cxx)
vtk_module_library(vtkIOCityGML ${Module_SRCS})
# pugixml does not set _INCLUDE_DIRS or _LIBRARIES
if(VTK_USE_SYSTEM_PUGIXML AND NOT pugixml_INCLUDE_DIRS)
find_package(pugixml REQUIRED)
get_target_property(pugixml_INCLUDE_DIRS pugixml INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(pugixml_LIBRARIES pugixml LOCATION)
include_directories(${pugixml_INCLUDE_DIRS})
vtk_module_link_libraries(vtkIOCityGML LINK_PRIVATE ${pugixml_LIBRARIES})
endif()
set(classes
vtkCityGMLReader)
vtk_module_add_module(VTK::IOCityGML
CLASSES ${classes})
vtk_module_test_data(
Data/CityGML/,REGEX:.*
Data/CityGML/textures/,REGEX:.*)
add_subdirectory(Cxx)
ExternalData_Expand_Arguments(VTKData _
"DATA{${VTK_TEST_INPUT_DIR}/CityGML/,REGEX:.*}"
"DATA{${VTK_TEST_INPUT_DIR}/CityGML/textures/,REGEX:.*}"
)
vtk_add_test_cxx(vtkIOCityGMLCxxTests tests
TestCityGMLReader.cxx
)
......
vtk_module(vtkIOCityGML
GROUPS
StandAlone
TEST_DEPENDS
vtkTestingCore
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkCommonExecutionModel
vtkFiltersGeneral
vtkFiltersModeling
vtkpugixml
PRIVATE_DEPENDS
vtkCommonDataModel
vtksys
)
NAME
VTK::IOCityGML
LIBRARY_NAME
vtkIOCityGML
KIT
VTK::IO
GROUPS
StandAlone
DEPENDS
VTK::CommonExecutionModel
PRIVATE_DEPENDS
VTK::CommonCore
VTK::CommonDataModel
VTK::FiltersGeneral
VTK::FiltersModeling
VTK::pugixml
VTK::vtksys
TEST_DEPENDS
VTK::IOImage
VTK::InteractionStyle
VTK::RenderingOpenGL2
VTK::TestingCore
VTK::TestingRendering
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