1
0
mirror of synced 2024-11-11 07:28:55 +01:00
modern-cmake/examples/root-simple-3.11/CMakeLists.txt
Henry Fredrick Schreiner 4897f2ae6f Adding test build to CI
2018-04-05 08:58:10 +02:00

610 B

[main]

cmake_minimum_required(VERSION 3.11)

project(RootSimpleExample311 LANGUAGES CXX)

find_package(ROOT CONFIG REQUIRED) message(STATUS "Found ROOT: ${ROOT_VERSION} at ${ROOT_DIR}")

separate_arguments(ROOT_CXX_FLAGS)

[modern_fix]

target_include_directories(ROOT::Core INTERFACE "${ROOT_INCLUDE_DIRS}") target_compile_options(ROOT::Core INTERFACE "${ROOT_CXX_FLAGS}")

[modern_fix]

add_executable(RootSimpleExample311 SimpleExample.cxx) target_link_libraries(RootSimpleExample311 PUBLIC ROOT::Physics)

[main]

enable_testing() add_test(NAME RootSimpleExample311 COMMAND RootSimpleExample311)