1
0
mirror of synced 2025-01-03 18:31:31 +01:00
Henry Schreiner 4825ba37ed
Update to CMake 3.25.0
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
2022-11-16 14:04:30 -05:00

23 lines
535 B
CMake

# CMake ROOT simple example
## [main]
cmake_minimum_required(VERSION 3.1...3.25)
project(RootSimpleExample LANGUAGES CXX)
# Finding the ROOT package
## [find_package]
find_package(ROOT 6.16 CONFIG REQUIRED)
## [find_package]
# Adding an executable program and linking to needed ROOT libraries
## [add_and_link]
add_executable(RootSimpleExample SimpleExample.cxx)
target_link_libraries(RootSimpleExample PUBLIC ROOT::Physics)
## [add_and_link]
## [main]
enable_testing()
add_test(NAME RootSimpleExample COMMAND RootSimpleExample)