Skip to content
Snippets Groups Projects
CMakeLists.txt 420 B
Newer Older
CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)

lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
find_package(ROOT COMPONENTS RIO Tree)

lintao@ihep.ac.cn's avatar
lintao@ihep.ac.cn committed
# Set up C++ Standard
# ``-DCMAKE_CXX_STANDARD=<standard>`` when invoking CMake
set(CMAKE_CXX_STANDARD 17 CACHE STRING "")

if(NOT CMAKE_CXX_STANDARD MATCHES "14|17")
  message(FATAL_ERROR "Unsupported C++ standard: ${CMAKE_CXX_STANDARD}")
endif()

add_subdirectory(Detector)