You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
452 B
CMake

# Automation test
set(AT_SRCS
client_autotest.cc
client_timeout_autotest.cc
main.cc
)
# Common libraries to link.
set(AT_LIBS
webcc
jsoncpp
GTest::GTest)
if(UNIX)
# Add `-ldl` for Linux to avoid "undefined reference to `dlopen'".
set(AT_LIBS ${AT_LIBS} ${CMAKE_DL_LIBS})
endif()
set(AT_TARGET_NAME webcc_autotest)
add_executable(${AT_TARGET_NAME} ${AT_SRCS})
target_link_libraries(${AT_TARGET_NAME} ${AT_LIBS})