This commit is contained in:
Prasad Joshi 2017-05-22 13:21:32 +00:00 committed by GitHub
commit 9311e213af
1 changed files with 5 additions and 2 deletions

View File

@ -1,9 +1,12 @@
find_path(CATCH_INCLUDE_DIR NAMES catch.hpp)
find_path(CATCH_INCLUDE_DIR NAMES catch.hpp PATHS ${CMAKE_SOURCE_DIR})
include_directories(${CATCH_INCLUDE_DIR})
add_executable(etcd_test EtcdTest.cpp EtcdSyncTest.cpp WatcherTest.cpp)
set_property(TARGET etcd_test PROPERTY CXX_STANDARD 11)
target_link_libraries(etcd_test etcd-cpp-api)
target_link_libraries(etcd_test
etcd-cpp-api
pthread
)
add_test(etcd_test etcd_test)