2022-03-05 13:24:51 +00:00
|
|
|
set(TEST_PROGRAMS
|
|
|
|
cxx11
|
|
|
|
aes
|
|
|
|
arg_parser
|
|
|
|
ascii85
|
2022-05-02 19:46:07 +00:00
|
|
|
base64
|
2022-03-05 13:24:51 +00:00
|
|
|
bits
|
|
|
|
buffer
|
|
|
|
closed_file_input_source
|
|
|
|
concatenate
|
|
|
|
dct_compress
|
|
|
|
dct_uncompress
|
|
|
|
flate
|
|
|
|
hex
|
|
|
|
input_source
|
|
|
|
json
|
|
|
|
json_handler
|
|
|
|
json_parse
|
2022-06-05 01:15:40 +00:00
|
|
|
logger
|
2022-03-05 13:24:51 +00:00
|
|
|
lzw
|
|
|
|
main_from_wmain
|
|
|
|
matrix
|
|
|
|
md5
|
|
|
|
nntree
|
|
|
|
numrange
|
2024-02-18 01:42:47 +00:00
|
|
|
obj_table
|
2022-03-05 13:24:51 +00:00
|
|
|
pdf_version
|
2022-06-19 12:56:36 +00:00
|
|
|
pl_function
|
2022-03-05 13:24:51 +00:00
|
|
|
pointer_holder
|
|
|
|
predictors
|
|
|
|
qintc
|
|
|
|
qutil
|
|
|
|
random
|
|
|
|
rc4
|
|
|
|
runlength
|
|
|
|
sha2
|
|
|
|
sparse_array)
|
2022-06-18 17:38:36 +00:00
|
|
|
set(TEST_C_PROGRAMS
|
|
|
|
logger_c)
|
|
|
|
|
2022-03-05 13:24:51 +00:00
|
|
|
foreach(PROG ${TEST_PROGRAMS})
|
|
|
|
add_executable(${PROG} ${PROG}.cc)
|
|
|
|
target_link_libraries(${PROG} libqpdf_object)
|
|
|
|
endforeach()
|
2022-06-18 17:38:36 +00:00
|
|
|
foreach(PROG ${TEST_C_PROGRAMS})
|
|
|
|
add_executable(${PROG} ${PROG}.c)
|
|
|
|
target_link_libraries(${PROG} libqpdf_object)
|
|
|
|
set_property(TARGET ${PROG} PROPERTY LINKER_LANGUAGE CXX)
|
|
|
|
endforeach()
|
2022-03-05 13:24:51 +00:00
|
|
|
|
|
|
|
# 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")
|