mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-06-04 11:25:44 +08:00

This replaces test.yml with ci.yml and renames the test to draco-ci. A Github PR with this all put together exists at the following link: https://github.com/google/draco/pull/806 An example draco-ci test summary exists at this link: https://github.com/google/draco/actions/runs/1789061363 - Add the following test configurations in a job named draco-tests. test-macos-make-release-shared test-macos-make-release-static test-macos-xcode-release-shared test-macos-xcode-release-static test-ubuntu-make-release-shared test-ubuntu-make-release-static test-windows-msvc-release-shared test-windows-msvc-release-static test-windows-make-release-shared test-windows-make-release-static Each configuration name is intended to be self documenting. All configurations build Draco with tests enabled, and then run the tests. - Add the following test configurations in a job named draco-install-tests: install-test-ubuntu-make install-test-macos-make install-test-macos-xcode install-test-windows-make install-test-windows-msvc Each configuration runs test.py in verbose mode to allow for failure diagnostics. Some additional changes to make all this work (and improve usability): - draco-config.cmake now defines DRACO_LIBRARY_DLL and DRACO_FOUND. - DRACO_LIBRARY_DLL will contain the full path to the Draco DLL on systems that produce DLL files (aka Windows). - test.py now streams output in verbose mode
12 lines
487 B
Plaintext
12 lines
487 B
Plaintext
@PACKAGE_INIT@
|
|
set_and_check(DRACO_INCLUDE_DIR "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
|
|
set_and_check(DRACO_LIBRARY_DIR "@CMAKE_INSTALL_FULL_LIBDIR@")
|
|
set(DRACO_NAMES
|
|
draco.dll libdraco.dylib libdraco.so draco.lib libdraco.dll libdraco.a)
|
|
find_library(_DRACO_LIBRARY PATHS ${DRACO_LIBRARY_DIR} NAMES ${DRACO_NAMES})
|
|
set_and_check(DRACO_LIBRARY ${_DRACO_LIBRARY})
|
|
find_file(DRACO_LIBRARY_DLL
|
|
PATHS ${DRACO_LIBRARY_DIR}
|
|
NAMES draco.dll libdraco.dll)
|
|
set(DRACO_FOUND YES)
|