Hi,
Here a fragment of my CMakeList.txt:
add_library(THERMUS SHARED ${SRCFILES})
set_target_properties(THERMUS PROPERTIES PUBLIC_HEADER "${HFILES}")
target_link_libraries(THERMUS ${ROOT_LIBRARIES} GSL::gsl GSL::gslcblas)
target_include_directories(THERMUS PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
ROOT_GENERATE_DICTIONARY(ThermusDict ${HFILES} LINKDEF THERMUSClassesLinkDef.h MODULE THERMUS)
install(TARGETS THERMUS)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libTHERMUS_rdict.pcm DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libTHERMUS.rootmap DESTINATION ${CMAKE_INSTALL_LIBDIR})
As you can see, I had to manually add the installation of the .pcm and .roadmap files.
However, from what I read, it should do it on its own, right?
Note: I also tried ROOT_STANDARD_LIBRARY_PACKAGE(), which behaves about same, but not sure it should be used outside of ROOT’s own libraries.
Thanks for any help.
Context:
root --version
ROOT Version: 6.28/04
Built for linuxx8664gcc on May 08 2023, 02:44:07
From tags/v6-28-04@v6-28-04
gcc --version
gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-22)
lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch
Distributor ID: Rocky
Description: Rocky Linux release 8.10 (Green Obsidian)
Release: 8.10
Codename: GreenObsidian
cmake --version
cmake version 3.26.5
ROOT Version: 6.28/04
Platform: Rocky 8.10
Compiler: gcc (GCC) 8.5.0
Note: adding a root --forum-version (or something), that would spit that exact content you expect we put as context would be nice, thanks.