2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-11 15:40:58 +00:00
qpdf/libtests/CMakeLists.txt
Jay Berkenbilt 3d9bac43da Add internal Pl_Base64
Bidirectional base64; will be used by JSON v2.
2022-05-03 18:31:22 -04:00

55 lines
1.0 KiB
CMake

set(TEST_PROGRAMS
cxx11
aes
arg_parser
ascii85
base64
bits
buffer
closed_file_input_source
concatenate
dct_compress
dct_uncompress
flate
hex
input_source
json
json_handler
json_parse
lzw
main_from_wmain
matrix
md5
nntree
numrange
pdf_version
pointer_holder
predictors
qintc
qutil
random
rc4
runlength
sha2
sparse_array)
foreach(PROG ${TEST_PROGRAMS})
add_executable(${PROG} ${PROG}.cc)
target_link_libraries(${PROG} libqpdf_object)
endforeach()
# Since libtests link with the object library and don't use the DLL,
# we don't need to (and shouldn't) add the libqpdf target directory to
# the path for libtests.
add_test(
NAME libtests
COMMAND ${RUN_QTEST}
--top ${qpdf_SOURCE_DIR}
--bin $<TARGET_FILE_DIR:qutil>
--bin $<TARGET_FILE_DIR:qpdf>
--code ${qpdf_SOURCE_DIR}/libtests
--color ${QTEST_COLOR}
--show-on-failure ${SHOW_FAILED_TEST_OUTPUT}
--tc "${qpdf_SOURCE_DIR}/libtests/*.cc"
--tc "${qpdf_SOURCE_DIR}/libqpdf/*.cc"
--tc "${qpdf_SOURCE_DIR}/libqpdf/qpdf/bits_functions.hh")