Notably, remove the include_directories(), which is not necessary, as most files do not actually use this.
11 lines
406 B
CMake
11 lines
406 B
CMake
add_executable(test_seq_arr test_seq_array.c)
|
|
target_link_libraries(test_seq_arr ds alg)
|
|
add_dependencies(tests test_seq_arr)
|
|
add_test(NAME test_seq_arr COMMAND test_seq_arr) # no options required
|
|
|
|
add_executable(test_hashtable test_hashtable.cpp)
|
|
add_dependencies(tests test_hashtable)
|
|
target_link_libraries(test_hashtable PRIVATE ds GTest::gtest)
|
|
add_test(NAME test_hashtable
|
|
COMMAND ./test_hashtable)
|