Skip to content

Commit

Permalink
cmake: add tests module (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
chungongyu authored Dec 18, 2020
1 parent 0d063b6 commit 914fd9c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ endif()
file(GLOB_RECURSE SOURCE "src/*.cc")
target_include_directories(pslite PUBLIC "${PROJECT_SOURCE_DIR}/include/")
target_sources(pslite PRIVATE ${SOURCE})

add_subdirectory(tests)
14 changes: 14 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
add_executable(connection_test test_connection.cc)
target_link_libraries(connection_test pslite)

add_executable(simple_app_test test_simple_app.cc)
target_link_libraries(simple_app_test pslite)

add_executable(kv_app_test test_kv_app.cc)
target_link_libraries(kv_app_test pslite)

add_executable(kv_app_benchmark_test test_kv_app_benchmark.cc)
target_link_libraries(kv_app_benchmark_test pslite)

add_executable(kv_app_multi_workers_test test_kv_app_multi_workers.cc)
target_link_libraries(kv_app_multi_workers_test pslite)

0 comments on commit 914fd9c

Please sign in to comment.