Skip to content
Snippets Groups Projects
Commit 3ee805aa authored by Axel Naumann's avatar Axel Naumann
Browse files

[cmake] Link dictionary to binary; use -inlineInputHeader.

This does not need an extra shared library, that needs to be searched and found.
Prevents extra gymnastics with finding the header at runtime.
parent 3cbb4fd3
No related branches found
No related tags found
No related merge requests found
ROOT_STANDARD_LIBRARY_PACKAGE(ElementStruct NO_INSTALL_HEADERS HEADERS ElementStruct.h SOURCES ElementStruct.cxx LINKDEF ElementStructLinkDef.h DEPENDENCIES RIO) ROOT_GENERATE_DICTIONARY(ElementStructDict ElementStruct.h LINKDEF ElementStructLinkDef.h OPTIONS -inlineInputHeader)
if(MSVC) ROOT_ADD_GTEST(testTOffsetGeneration TOffsetGeneration.cxx ElementStruct.cxx ElementStructDict.cxx
add_custom_command(TARGET ElementStruct POST_BUILD COPY_TO_BUILDDIR ElementStruct.h
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/libElementStruct.dll LIBRARIES RIO Tree MathCore
${CMAKE_CURRENT_BINARY_DIR}/libElementStruct.dll) )
endif() target_include_directories(testTOffsetGeneration PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
ROOT_ADD_GTEST(testTOffsetGeneration TOffsetGeneration.cxx LIBRARIES RIO Tree MathCore ElementStruct)
ROOT_ADD_GTEST(testTBasket TBasket.cxx LIBRARIES RIO Tree) ROOT_ADD_GTEST(testTBasket TBasket.cxx LIBRARIES RIO Tree)
ROOT_ADD_GTEST(testTBranch TBranch.cxx LIBRARIES RIO Tree MathCore) ROOT_ADD_GTEST(testTBranch TBranch.cxx LIBRARIES RIO Tree MathCore)
ROOT_ADD_GTEST(testTIOFeatures TIOFeatures.cxx LIBRARIES RIO Tree) ROOT_ADD_GTEST(testTIOFeatures TIOFeatures.cxx LIBRARIES RIO Tree)
......
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