Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added scaffolding for building yardl and ROOT components #3

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ else()
add_compile_options(-Wall -Wextra -pedantic)
endif()

# Example lines for a new executable
# add_executable(my_prog my_prog.cpp)
# target_link_libraries(my_prog PUBLIC prd_generated)
# install(TARGETS my_prog DESTINATION bin)

add_subdirectory(../PETSIRD/cpp/generated PETSIRD_generated)

find_package(ROOT REQUIRED COMPONENTS Core Imt RIO Net Hist Graf Graf3d Gpad Tree TreePlayer Rint Postscript Matrix Physics MathCore Thread MultiProc ROOTDataFrame)
add_executable(root_to_petsird main.cpp)
include_directories(root_to_petsird PUBLIC ../PETSIRD/cpp/generated)
target_link_libraries(root_to_petsird PUBLIC prd_generated)
target_link_libraries(root_to_petsird PUBLIC ROOT::Core ROOT::Imt ROOT::RIO ROOT::Net ROOT::Hist ROOT::Graf ROOT::Graf3d ROOT::Gpad ROOT::Tree ROOT::TreePlayer ROOT::Rint ROOT::Postscript ROOT::Matrix ROOT::Physics ROOT::MathCore ROOT::Thread ROOT::MultiProc ROOT::ROOTDataFrame)
install(TARGETS root_to_petsird DESTINATION bin)
Loading