-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#feature] cmake file for blackwidow tests(#1226)
Signed-off-by: tangruilin <tang.ruilin@foxmail.com>
- Loading branch information
1 parent
fdaddd2
commit 653a5ed
Showing
5 changed files
with
37 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,3 +53,6 @@ tags | |
make_config.mk | ||
src/*.d | ||
src/build_version.cc | ||
|
||
#cache | ||
.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
|
||
include(GoogleTest) | ||
|
||
file(GLOB_RECURSE BLACKWINDOW_TEST_SOURCE "${PROJECT_SOURCE_DIR}/tests/*.cc") | ||
|
||
aux_source_directory(../stc TEST_SRCS) | ||
|
||
foreach(blackwindow_test_source ${BLACKWINDOW_TEST_SOURCE}) | ||
get_filename_component(blackwidow_test_filename ${blackwindow_test_source} NAME) | ||
message(${blackwidow_test_filename}) | ||
string(REPLACE ".cc" "" blackwindow_test_name ${blackwidow_test_filename}) | ||
|
||
# Add the test target | ||
add_executable(${blackwindow_test_name} ${blackwindow_test_source}) | ||
target_include_directories(${blackwindow_test_name} | ||
PUBLIC ${PROJECT_SOURCE_DIR}/include | ||
PUBLIC ${PROJECT_SOURCE_DIR}/../../third/rocksdb/include | ||
PUBLIC ${PROJECT_SOURCE_DIR}/../../third/rocksdb | ||
PUBLIC ${PROJECT_SOURCE_DIR}/.. | ||
) | ||
target_link_libraries(${blackwindow_test_name} | ||
PUBLIC gtest | ||
PUBLIC slash | ||
PUBLIC rocksdb | ||
PUBLIC blackwidow | ||
) | ||
endforeach(blackwindow_test_source ${BLACKWINDOW_TEST_SOURCE}) |
This file was deleted.
Oops, something went wrong.