wx2017
June 28, 2019, 7:08pm
1
For cmake, in CMakeLists.txt, I add the following command:
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
After the share library is created, the lib is moved to the ${LIBRARY_OUTPUT_PATH}. However, the *.pcm file is not moved together. How to configure CMakeLists.txt so that the *.so and *.pcm can be moved to the same directory?
Thanks
ROOT Version: 6.16
Platform: ubuntu
Compiler: g++
@wx2017 can please clarify, are you talking here about *_rdict.pcm or ROOT C++ modules?
For *_rdict.pcms, if you write your custom CMakelists file, you need explicitly mention where you want to install them.
For example if you are using ROOT_GENERATE_DICTIONARY() or via ROOT_STANDARD_LIBRARY_PACKAGE() then *_rdict.pcms are installed easily using https://github.com/root-project/root/blob/10f3eb80e90a18257fe7821949f7780fa33a1628/cmake/modules/RootNewMacros.cmake#L504
Thanks. This is what I needed.
system
Closed
July 15, 2019, 2:51pm
4
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.