fix settings

This commit is contained in:
liuyihui 2022-10-16 23:57:42 +08:00
parent 5d6f2765e3
commit 27aaabfe68

View File

@ -1,9 +1,7 @@
cmake_minimum_required(VERSION 3.16)
set(Geant4_DIR D:/Geant4/dist/lib/Geant4-11.0.1)
project(exampleB0)
set(Geant4_DIR ${Geant4_DIR})
option(WITH_GEANT4_UIVIS "Build example with Geant4 UI and Vis drivers" ON)
if(WITH_GEANT4_UIVIS)
find_package(Geant4 REQUIRED ui_all vis_all)