xcdat/tests/CMakeLists.txt

25 lines
942 B
CMake
Raw Permalink Normal View History

2021-06-29 01:09:49 +00:00
add_executable(test_bit_vector test_bit_vector.cpp)
add_test(test_bit_vector test_bit_vector)
add_executable(test_compact_vector test_compact_vector.cpp)
add_test(test_compact_vector test_compact_vector)
add_executable(test_tail_vector test_tail_vector.cpp)
add_test(test_tail_vector test_tail_vector)
2021-07-02 23:12:35 +00:00
set(BC_OPTIONS "7" "8" "15" "16")
2021-06-29 01:09:49 +00:00
foreach(BC_OPTION ${BC_OPTIONS})
set(TEST_SRC_NAME test_bc_vector_${BC_OPTION})
add_executable(${TEST_SRC_NAME} test_bc_vector.cpp)
set_target_properties(${TEST_SRC_NAME} PROPERTIES COMPILE_DEFINITIONS BC_VECTOR_${BC_OPTION})
add_test(${TEST_SRC_NAME} ${TEST_SRC_NAME})
endforeach(BC_OPTION)
foreach(BC_OPTION ${BC_OPTIONS})
set(TEST_SRC_NAME test_trie_${BC_OPTION})
add_executable(${TEST_SRC_NAME} test_trie.cpp)
set_target_properties(${TEST_SRC_NAME} PROPERTIES COMPILE_DEFINITIONS TRIE_${BC_OPTION})
add_test(${TEST_SRC_NAME} ${TEST_SRC_NAME})
endforeach(BC_OPTION)