2021-12-15 11:09:58 -05:00
|
|
|
cmake_minimum_required(VERSION 3.13)
|
|
|
|
project(SPS_SABRE_EventBuilder)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
|
|
|
|
find_package(ROOT 6.22 CONFIG REQUIRED)
|
|
|
|
|
|
|
|
if(${ROOT_VERSION} VERSION_LESS "6.20")
|
|
|
|
include("${ROOT_DIR}/modules/RootNewMacros.cmake")
|
|
|
|
# For ROOT versions than 6.16, things break
|
|
|
|
# if nothing is in the global include list!
|
|
|
|
if (${ROOT_VERSION} VERSION_LESS "6.16")
|
|
|
|
include_directories(ROOT_NONEXISTENT_DIRECTORY_HACK)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
|
|
set(CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "..." FORCE)
|
|
|
|
endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
|
|
|
|
|
|
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
|
|
|
|
|
2021-12-15 15:48:43 -05:00
|
|
|
set(PCH_DIR ${CMAKE_CURRENT_LIST_DIR}/src)
|
2021-12-15 14:36:24 -05:00
|
|
|
|
2021-12-15 15:48:43 -05:00
|
|
|
add_subdirectory(vendor/spdlog)
|
2021-12-15 11:09:58 -05:00
|
|
|
add_subdirectory(src)
|