-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scaffold readers.draco and writers.draco
- Loading branch information
Showing
13 changed files
with
696 additions
and
421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
# | ||
# Draco plugin CMake configuration | ||
# | ||
if (NOT Draco_FOUND) | ||
message(FATAL_ERROR "Can't find Draco support required.") | ||
endif() | ||
|
||
# | ||
# Draco Reader | ||
# | ||
PDAL_ADD_PLUGIN(reader_libname reader draco | ||
FILES | ||
io/DracoReader.cpp | ||
LINK_WITH | ||
${DRACO_LIBRARY} | ||
INCLUDES | ||
${draco_INCLUDE_DIR} | ||
${NLOHMANN_INCLUDE_DIR} | ||
) | ||
|
||
if (WIN32) | ||
target_compile_definitions(${reader_libname} PRIVATE -DNONMINMAX) | ||
endif() | ||
|
||
# | ||
# Draco Writer | ||
# | ||
|
||
PDAL_ADD_PLUGIN(writer_libname writer draco | ||
FILES | ||
io/DracoWriter.cpp | ||
LINK_WITH | ||
${DRACO_LIBRARY} | ||
INCLUDES | ||
${draco_INCLUDE_DIR} | ||
${NLOHMANN_INCLUDE_DIR} | ||
) | ||
|
||
if (WIN32) | ||
target_compile_definitions(${writer_libname} PRIVATE -DNONMINMAX) | ||
endif() | ||
|
||
if (WITH_TESTS) | ||
|
||
PDAL_ADD_TEST(pdal_io_draco_writer_test | ||
FILES | ||
test/DracoWriterTest.cpp | ||
LINK_WITH | ||
${writer_libname} | ||
${DRACO_LIBRARY} | ||
INCLUDES | ||
${draco_INCLUDE_DIR} | ||
${NLOHMANN_INCLUDE_DIR} | ||
) | ||
|
||
PDAL_ADD_TEST(pdal_io_draco_reader_test | ||
FILES | ||
test/DracoReaderTest.cpp | ||
LINK_WITH | ||
${reader_libname} | ||
${writer_libname} | ||
${DRACO_LIBRARY} | ||
) | ||
|
||
|
||
if (WIN32) | ||
target_compile_definitions(pdal_io_draco_writer_test PRIVATE -DNONMINMAX) | ||
target_compile_definitions(pdal_io_draco_reader_test PRIVATE -DNONMINMAX) | ||
endif() | ||
|
||
endif() |
Oops, something went wrong.