From 8721dc4408d673dd9538c793b5fb970bfa5ecfcf Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Mon, 25 Oct 2021 15:14:58 +0800 Subject: [PATCH] add index test example --- source/libs/index/test/CMakeLists.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 source/libs/index/test/CMakeLists.txt diff --git a/source/libs/index/test/CMakeLists.txt b/source/libs/index/test/CMakeLists.txt new file mode 100644 index 0000000000..f2a7442a5a --- /dev/null +++ b/source/libs/index/test/CMakeLists.txt @@ -0,0 +1,23 @@ +add_executable(indexTest "") +target_sources(indexTest + PRIVATE + "../src/index.c" + "indexTests.cpp" +) +target_include_directories ( indexTest + PUBLIC + "${CMAKE_SOURCE_DIR}/include/libs/index" + "${CMAKE_CURRENT_SOURCE_DIR}/../inc" +) +target_link_libraries (indexTest + os + util + common + gtest_main + index +) + +add_test( + NAME index_test + COMMAND indexTest +) -- GitLab