1
0
mirror of synced 2024-09-23 17:11:46 +02:00
modern-cmake/examples/root-simple/CMakeLists.txt
2020-08-03 18:16:52 -04:00

21 lines
506 B
CMake

## [main]
cmake_minimum_required(VERSION 3.1...3.16)
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)