mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Linking the tests against zint-static if available
Linking against the dynamic zint library requires LD_LIBRARY_PATH and friends to be set, which complicates the test setup. On the long run, we want to be able to test both the dynamic and the static (at the same time), though
This commit is contained in:
parent
acd12e1754
commit
c84915e212
@ -17,7 +17,11 @@ if(NOT EXISTS ${BWIPP_PS})
|
||||
endif()
|
||||
|
||||
add_library(testcommon testcommon.c testcommon.h)
|
||||
if(ZINT_STATIC)
|
||||
target_link_libraries(testcommon zint-static)
|
||||
else()
|
||||
target_link_libraries(testcommon zint)
|
||||
endif()
|
||||
|
||||
macro(zint_add_test test_name test_command)
|
||||
set(ADDITIONAL_LIBS "${ARGN}" ${LIBRARY_FLAGS})
|
||||
|
Loading…
Reference in New Issue
Block a user