cmake_minimum_required(VERSION 3.3 FATAL_ERROR) project( ELECTRONS ) # Don't forget to source ${Geant_DIR}/../../bin/geant4.sh find_package(Geant4 REQUIRED) include(${Geant4_USE_FILE}) add_definitions( -DTHREADED ) # The Geant 4 executable. add_executable( electrons electrons.cc ) target_link_libraries( electrons ${Geant4_LIBRARIES} ) # The Geant 4 input deck. configure_file( electrons.txt electrons.txt COPYONLY )