From 0ded67329d98ebbf5e742a3f395e269b46657a49 Mon Sep 17 00:00:00 2001 From: Michael MIGLIORE Date: Thu, 28 Mar 2024 19:17:25 +0100 Subject: [PATCH] Add colormaps installation step (#157) --- projects/f3d.cmake | 8 ++++++++ testing/CMakeLists.txt | 2 +- testing/baselines/TestSimpleColor.png | 4 ++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/projects/f3d.cmake b/projects/f3d.cmake index 65facbf0..82cd9bca 100644 --- a/projects/f3d.cmake +++ b/projects/f3d.cmake @@ -55,6 +55,14 @@ superbuild_project_add_step("extra-install-configurations" install ) +superbuild_project_add_step("extra-install-colormaps" + COMMAND ${CMAKE_COMMAND} --install --component colormaps + COMMENT + "Installing colormaps" + DEPENDEES + install +) + if (UNIX AND NOT APPLE) superbuild_project_add_step("extra-install-mimetypes" COMMAND ${CMAKE_COMMAND} --install --component mimetypes diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt index d5027060..89dfc99e 100644 --- a/testing/CMakeLists.txt +++ b/testing/CMakeLists.txt @@ -71,7 +71,7 @@ set_tests_properties(f3d-exec-exists # Use f3d executable to ensure dependecies can be loaded and renders correctly f3d_add_test(TestSimple cow.vtp) -f3d_add_test(TestSimpleColor dragon.vtu) +f3d_add_test(TestSimpleColor dragon.vtu --colormap-file=viridis) f3d_add_test(TestThumbnail dragon.vtu --config=thumbnail) if (alembic_enabled) diff --git a/testing/baselines/TestSimpleColor.png b/testing/baselines/TestSimpleColor.png index d8f386af..27268aeb 100644 --- a/testing/baselines/TestSimpleColor.png +++ b/testing/baselines/TestSimpleColor.png @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:4decf8472222afea5d6aded7a5a586624960ad40c6bf9c40c39aa04257b62eae -size 63122 +oid sha256:0c61284d014e53fd012c9f892008786f4c65068d5ec0484f620e3a840c8c4e56 +size 61508