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.
25 lines
447 B
CMake
25 lines
447 B
CMake
![]()
4 years ago
|
set(SRCS
|
||
|
client_autotest.cc
|
||
|
main.cc
|
||
|
)
|
||
|
|
||
|
# Common libraries to link.
|
||
|
set(LIBS
|
||
|
webcc
|
||
|
jsoncpp
|
||
|
GTest::GTest
|
||
|
)
|
||
|
|
||
|
if(UNIX)
|
||
|
# Add `-ldl` for Linux to avoid "undefined reference to `dlopen'".
|
||
|
set(LIBS ${LIBS} ${CMAKE_DL_LIBS})
|
||
|
endif()
|
||
|
|
||
|
set(TARGET_NAME client_autotest)
|
||
|
|
||
|
add_executable(${TARGET_NAME} ${SRCS})
|
||
|
|
||
|
target_link_libraries(${TARGET_NAME} ${LIBS})
|
||
|
|
||
|
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "Tests")
|