StimBuff,commonLibs: Add libattachmentSupport, move fnptrs into .cpp files

We move the methods in StimulusBuffer whose addresses are taken during
program execution into a separate static lib. This guarantees that
they'll have their own, single vaddr at runtime, at least within
each independent code module.
This commit is contained in:
2025-11-02 19:08:47 -04:00
parent 45ad5c83ee
commit b3bf0e2cb9
5 changed files with 124 additions and 88 deletions
@@ -0,0 +1,15 @@
add_library(attachmentSupport STATIC
attachmentSupport.cpp
)
set_target_properties(attachmentSupport PROPERTIES
POSITION_INDEPENDENT_CODE ON
)
target_include_directories(attachmentSupport PUBLIC
${Boost_INCLUDE_DIRS}
${CMAKE_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}/include
)
target_link_libraries(attachmentSupport ${Boost_LIBRARIES})