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:
@@ -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})
|
||||
Reference in New Issue
Block a user