cmake_minimum_required(VERSION 3.0 FATAL_ERROR) project(BabySteps_3) find_package(Geant4 REQUIRED ui_all vis_all) include(${Geant4_USE_FILE}) include_directories(${PROJECT_SOURCE_DIR}/include) file(GLOB sources ${PROJECT_SOURCE_DIR}/src/*.cc) file(GLOB headers ${PROJECT_SOURCE_DIR}/include/*.hh) add_executable(BabySteps_3 main.cc ${sources} ${headers}) target_link_libraries(BabySteps_3 ${Geant4_LIBRARIES}) #add_custom_target(BabySteps_2 DEPENDS main)