add_executable(aec_client aec.c)
set_target_properties(aec_client PROPERTIES OUTPUT_NAME "aec")
target_link_libraries(aec_client aec)
+add_executable(utime EXCLUDE_FROM_ALL utime.c)
install(FILES libaec.h szlib.h DESTINATION include)
install(TARGETS aec sz
check_code_options
check_buffer_sizes
check_long_fs)
+
+add_custom_target(bench
+ COMMAND ${CMAKE_SOURCE_DIR}/tests/benc.sh
+ COMMAND ${CMAKE_SOURCE_DIR}/tests/bdec.sh
+ DEPENDS aec_client utime
+)
\ No newline at end of file
set -e
AEC=../src/aec
-if [ ! -f typical.rz ]; then
+if [ ! -f typical.dat ]; then
+ rm -f typical.rz
wget https://www.dkrz.de/redmine/attachments/download/442/typical.rz
$AEC -d -n16 -j64 -r256 -m -c typical.rz > typical.dat
rm -f bench.dat