Skip to content

Commit

Permalink
CMake stuff for the desynccorrelator
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Bisanz committed Sep 21, 2023
1 parent acfee00 commit b0e7755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ IF(BUILD_runsplitter)
add_subdirectory(etc/tools/runsplitter)
ENDIF()

option(BUILD_desynccorr "Compile desynccorr executable?" ON)
option(BUILD_desynccorr "Compile desynccorr executable?" OFF)
IF(BUILD_desynccorr)
add_subdirectory(etc/tools/desynccorr)
ENDIF()
Expand Down
5 changes: 4 additions & 1 deletion etc/tools/desynccorr/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ SET(name "desynccorr")

SET(sourcefiles src/desynccorr.cxx)

find_package(ROOT REQUIRED COMPONENTS Core Hist)
INCLUDE_DIRECTORIES(${ROOT_INCLUDE_DIRS})

ADD_EXECUTABLE(${name} ${sourcefiles})

target_link_libraries(${name} EUDAQ )
target_link_libraries(${name} EUDAQ ROOT::Core ROOT::Hist)

INSTALL(TARGETS ${name}
RUNTIME DESTINATION bin COMPONENT MAIN_EXE
Expand Down

0 comments on commit b0e7755

Please sign in to comment.