Skip to content

Commit

Permalink
[QC-576] New naming scheme in CPV module (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
Barthelemy authored Apr 29, 2021
1 parent 6063f60 commit a4c6b9a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Modules/CPV/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# ---- Library ----

add_library(QcCPV)
add_library(O2QcCPV)

target_sources(QcCPV PRIVATE src/PedestalCheck.cxx src/PedestalTask.cxx )
target_sources(O2QcCPV PRIVATE src/PedestalCheck.cxx src/PedestalTask.cxx )

target_include_directories(
QcCPV
O2QcCPV
PUBLIC $<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/src)

target_link_libraries(QcCPV PUBLIC O2QualityControl O2::CPVBase ROOT::Spectrum)
target_link_libraries(O2QcCPV PUBLIC O2QualityControl O2::CPVBase ROOT::Spectrum)

install(TARGETS QcCPV
install(TARGETS O2QcCPV
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

add_root_dictionary(QcCPV
add_root_dictionary(O2QcCPV
HEADERS
include/CPV/PedestalCheck.h
include/CPV/PedestalTask.h
LINKDEF include/CPV/LinkDef.h
BASENAME QcCPV)
BASENAME O2QcCPV)

# ---- Test(s) ----

Expand All @@ -34,7 +34,7 @@ foreach(test ${TEST_SRCS})

add_executable(${test_name} ${test})
target_link_libraries(${test_name}
PRIVATE QcCPV Boost::unit_test_framework)
PRIVATE O2QcCPV Boost::unit_test_framework)
add_test(NAME ${test_name} COMMAND ${test_name})
set_property(TARGET ${test_name}
PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/tests)
Expand Down

0 comments on commit a4c6b9a

Please sign in to comment.