Commit b01dec78 authored by Utkarsh Ayachit's avatar Utkarsh Ayachit Committed by Ben Boeckel

vtkIOLAS: update to the new module system

parent 231756ef
find_package(libLAS REQUIRED)
mark_as_advanced(libLAS_INCLUDE_DIR libLAS_LIBRARY)
vtk_module_find_package(PACKAGE libLAS)
set(LASReader_SRCS vtkLASReader.cxx)
set(classes
vtkLASReader)
include_directories(${libLAS_INCLUDE_DIRS})
vtk_module_add_module(VTK::IOLAS
CLASSES ${classes})
vtk_module_library(vtkIOLAS ${LASReader_SRCS})
vtk_module_link_libraries(vtkIOLAS LINK_PRIVATE ${libLAS_LIBRARIES})
vtk_module_link(VTK::IOLAS
PRIVATE
# XXX(liblas-1.8.2): Use these when the minimum version is 1.8.2+.
# Currently, the imported target names vary based on the platform. In
# addition, the include interface is not set up properly. See
# https://github.com/libLAS/libLAS/pull/153.
# las las_c
${libLAS_LIBRARIES})
vtk_module_include(VTK::IOLAS
PRIVATE
${libLAS_INCLUDE_DIRS})
vtk_module_test_data(
Data/test_1.las
Data/test_2.las)
add_subdirectory(Cxx)
# TODO: Simplify this with some argument passing.
set(VTK_LAS_READER_TESTS)
function(add_vtk_las_reader_test test_input elevation)
get_filename_component(VTK_LAS_READER_POSTFIX ${test_input} NAME_WE)
......
......@@ -37,10 +37,7 @@
int TestLASReader_@VTK_LAS_READER_POSTFIX@(int argc, char **argv)
{
//const char* fileName = "Data/tp_manual_20160907131754_flt.las";
//const char* fileName = "Data/test_buildings.las";
const char* fileName = "Data/@VTK_LAS_READER_TEST_INPUT@";
//const char* fileName = "Data/test_3.las";
const char* path = vtkTestUtilities::ExpandDataFileName(argc, argv, fileName);
vtkNew<vtkLASReader> reader;
//Select source file
......
vtk_module(vtkIOLAS
TEST_DEPENDS
vtkTestingCore
vtkRenderingOpenGL2
vtkTestingRendering
vtkInteractionStyle
EXCLUDE_FROM_ALL
KIT
vtkIO
DEPENDS
vtkCommonCore
vtkFiltersGeneral
vtkCommonExecutionModel
PRIVATE_DEPENDS
vtkCommonDataModel
)
NAME
VTK::IOLAS
LIBRARY_NAME
vtkIOLAS
KIT
VTK::IO
DEPENDS
VTK::CommonCore
VTK::CommonExecutionModel
VTK::FiltersGeneral
PRIVATE_DEPENDS
VTK::CommonDataModel
TEST_DEPENDS
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