From c1e79a699475918e227d700b3eaefff1d0916f46 Mon Sep 17 00:00:00 2001 From: ccolin Date: Thu, 10 Feb 2022 19:59:35 +0100 Subject: [PATCH] enable Qt by default as it appears to be required on all platforms --- LISEZMOI | 8 -------- external/vtk/CMakeLists.txt | 3 +++ 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/LISEZMOI b/LISEZMOI index a5df1c8..c54c037 100644 --- a/LISEZMOI +++ b/LISEZMOI @@ -10,11 +10,3 @@ Compilation (pour développeurs) : -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_CXX_FLAGS="-Wall -Wextra" \ && cmake --build build - - -Il peut également être nécessaire de passer - -DVTK_MODULE_ENABLE_VTK_GUISupportQt:STRING=YES - -DVTK_MODULE_ENABLE_VTK_RenderingQt:STRING=YES - -DVTK_MODULE_ENABLE_VTK_ViewsQt:STRING=YES -à cmake sans quoi la fenêtre refuse de s'afficher (nécessite d'avoir -Qt installé). diff --git a/external/vtk/CMakeLists.txt b/external/vtk/CMakeLists.txt index d54068f..0df4bf3 100644 --- a/external/vtk/CMakeLists.txt +++ b/external/vtk/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.15) set(VTK_ENABLE_WRAPPING OFF) +set(VTK_MODULE_ENABLE_VTK_GUISupportQt "YES" CACHE STRING "") +set(VTK_MODULE_ENABLE_VTK_RenderingQt "YES" CACHE STRING "") +set(VTK_MODULE_ENABLE_VTK_ViewsQt "YES" CACHE STRING "") include(FetchContent)