Add a copy of libfdb_c.so to lib for external client use

This commit is contained in:
Lukas Joswiak 2022-01-07 17:04:16 -08:00
parent 64090dd2c0
commit ff03fe99ff
1 changed files with 3 additions and 0 deletions

View File

@ -156,6 +156,9 @@ if(NOT WIN32 AND NOT IS_ARM_MAC)
else()
set(FDB_C_TARGET $<TARGET_FILE:fdb_c>)
endif()
add_custom_command(
TARGET fdb_c POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${FDB_C_TARGET} ${CMAKE_BINARY_DIR}/lib/libfdb_c_external.so)
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so
COMMAND ${CMAKE_COMMAND} -E copy ${FDB_C_TARGET} ${CMAKE_CURRENT_BINARY_DIR}/libfdb_c.so