Skip to content
Snippets Groups Projects
Commit 18760013 authored by Omveer's avatar Omveer
Browse files

Fix: pipeline #19214

Rootmap and pcm files are copied into library directory
parent f86667e9
No related branches found
No related tags found
2 merge requests!969Macro to add a library target for CbmRoot:,!967Trasition from old to modern cmake in core dir
......@@ -219,6 +219,13 @@ macro(generate_cbm_library)
if(LINKDEF)
set(rootmap_file ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${LIBRARY_NAME}.rootmap)
set(pcm_file ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_SHARED_LIBRARY_PREFIX}${LIBRARY_NAME}_rdict.pcm)
add_custom_command(TARGET ${LIBRARY_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${rootmap_file} ${LIBRARY_OUTPUT_PATH}
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${pcm_file} ${LIBRARY_OUTPUT_PATH}
DEPENDS ${LIBRARY_NAME}
)
install(FILES ${rootmap_file} ${pcm_file} DESTINATION lib)
endif(LINKDEF)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment