mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-10 20:38:51 -05:00
22 lines
507 B
CMake
22 lines
507 B
CMake
|
cmake_minimum_required(VERSION 3.16)
|
||
|
|
||
|
set(CMAKE_CXX_STANDARD 17)
|
||
|
set(CMAKE_POSITION_INDEPENDENT_CODE On)
|
||
|
|
||
|
if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||
|
set(CMAKE_BUILD_TYPE "Release")
|
||
|
message("Building release")
|
||
|
else()
|
||
|
message("Building debug")
|
||
|
endif()
|
||
|
|
||
|
project(SPS_SABRE_EventBuilder)
|
||
|
|
||
|
find_package(ROOT REQUIRED COMPONENTS Gui)
|
||
|
|
||
|
message("ROOT libs " ${ROOT_LIBRARIES})
|
||
|
|
||
|
set(EVB_BINARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/bin)
|
||
|
set(EVB_LIBRARY_DIR ${CMAKE_CURRENT_SOURCE_DIR}/lib)
|
||
|
|
||
|
add_subdirectory(src)
|