enable Qt by default as it appears to be required on all platforms

This commit is contained in:
ccolin 2022-02-10 19:59:35 +01:00
parent ecabdfe7d9
commit c1e79a6994
2 changed files with 3 additions and 8 deletions

View File

@ -10,11 +10,3 @@ Compilation (pour développeurs) :
-DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_CXX_FLAGS="-Wall -Wextra" \ -DCMAKE_CXX_FLAGS="-Wall -Wextra" \
&& cmake --build build && 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é).

View File

@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.15) cmake_minimum_required(VERSION 3.15)
set(VTK_ENABLE_WRAPPING OFF) 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) include(FetchContent)