refactored to remove old project variable

This commit is contained in:
jakeg00dwin 2024-03-08 10:32:06 -08:00
parent a5c8ffaae4
commit ef1c67b84f
1 changed files with 7 additions and 9 deletions

View File

@ -1,18 +1,16 @@
# An example for building and testing a shared library
# that can also depends on another shared library
set_target_properties(wrap PROPERTIES VERSION 1.0 SOVERSION 1)
target_include_directories(camera_handler PUBLIC
${PROJECT_SOURCE_DIR}/wrap/
${CMAKE_CURRENT_SOURCE_DIR}
)
add_library(wrap SHARED
wrap.c
)
set_target_properties(wrap PROPERTIES VERSION 1.0 SOVERSION 1)
target_include_directories(wrap PUBLIC
${PROJECT_SOURCE_DIR}/wrap/
${CMAKE_CURRENT_SOURCE_DIR}
)
if(UNIT_TESTING)
@ -30,7 +28,7 @@ if(UNIT_TESTING)
list(JOIN WRAPPED_FUNCS ",--wrap=" WRAPPED_STR)
message("WRAPPED_STR: ${WRAPPED_STR}")
set_target_properties(camera_handler
set_target_properties(wrap
PROPERTIES
LINK_FLAGS "-Wl,--wrap=${WRAPPED_STR}"
)