add index test example
This commit is contained in:
parent
551cfd5c35
commit
8721dc4408
|
@ -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
|
||||||
|
)
|
Loading…
Reference in New Issue