File: CMakeLists.txt

package info (click to toggle)
zfp 1.0.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,744 kB
  • sloc: cpp: 20,656; ansic: 18,871; pascal: 1,231; f90: 907; python: 255; makefile: 183; sh: 79; fortran: 70
file content (28 lines) | stat: -rw-r--r-- 858 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
function(zfp_add_cpp_tests dims type bits)
  # test templated block encoding
  set(test_name testTemplatedDecode${dims}${type})
  add_executable(${test_name} ${test_name}.cpp)
  target_link_libraries(${test_name}
    gtest gtest_main zfp rand${bits}Lib)
  target_compile_definitions(${test_name} PRIVATE ${zfp_compressed_array_defs})
  add_test(NAME ${test_name} COMMAND ${test_name})

endfunction()

zfp_add_cpp_tests(1 f 32)
zfp_add_cpp_tests(2 f 32)
zfp_add_cpp_tests(3 f 32)
zfp_add_cpp_tests(4 f 32)
zfp_add_cpp_tests(1 d 64)
zfp_add_cpp_tests(2 d 64)
zfp_add_cpp_tests(3 d 64)
zfp_add_cpp_tests(4 d 64)

#zfp_add_cpp_tests(1 Int32 32)
#zfp_add_cpp_tests(2 Int32 32)
#zfp_add_cpp_tests(3 Int32 32)
#zfp_add_cpp_tests(4 Int32 32)
#zfp_add_cpp_tests(1 Int64 64)
#zfp_add_cpp_tests(2 Int64 64)
#zfp_add_cpp_tests(3 Int64 64)
#zfp_add_cpp_tests(4 Int64 64)