mirror of
https://git.code.sf.net/p/zint/code
synced 2025-06-05 01:04:07 -04:00
Move getopt out of the frontend, because it's used in the backend's test, too
This commit is contained in:
parent
779a318c93
commit
88bbeb862b
7 changed files with 19 additions and 8 deletions
|
@ -28,11 +28,17 @@ set(testcommon_SRCS testcommon.c testcommon.h)
|
|||
add_library(testcommon ${testcommon_SRCS})
|
||||
target_link_libraries(testcommon zint)
|
||||
target_include_directories(testcommon PUBLIC ${zint_backend_tests_SOURCE_DIR})
|
||||
if(NOT HAVE_GETOPT)
|
||||
target_link_libraries(testcommon zint_bundled_getopt)
|
||||
endif()
|
||||
|
||||
if(ZINT_STATIC)
|
||||
add_library(testcommon-static ${testcommon_SRCS})
|
||||
target_link_libraries(testcommon-static zint-static)
|
||||
target_include_directories(testcommon-static PUBLIC ${zint_backend_tests_SOURCE_DIR})
|
||||
if(NOT HAVE_GETOPT)
|
||||
target_link_libraries(testcommon-static zint_bundled_getopt)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
zint_add_test(2of5 test_2of5)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue