13 lines
331 B
CMake
13 lines
331 B
CMake
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
|
|
pthread
|
|
)
|
|
|
|
add_test(etcd_test etcd_test)
|