cmake_minimum_required(VERSION 3.10 FATAL_ERROR) #---Define the Standard macros for ROOT----------------------------------------------------------- include(${CMAKE_CURRENT_LIST_DIR}/RootMacros.cmake) #---Set Link and include directories-------------------------------------------------------------- include_directories(${ROOT_INCLUDE_DIRS}) link_directories(${ROOT_LIBRARY_DIR}) #---Set Flags------------------------------------------------------------------------------------- add_definitions(${ROOT_DEFINITIONS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${ROOT_CXX_FLAGS}") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${ROOT_C_FLAGS}") set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} ${ROOT_fortran_FLAGS}")