2020-01-25 03:58:20 +00:00
|
|
|
add_executable(drogon_msgbuffer_unittest MsgBufferUnittest.cpp)
|
2019-12-06 17:26:12 +00:00
|
|
|
add_executable(drobject_unittest DrObjectUnittest.cpp)
|
|
|
|
add_executable(gzip_unittest GzipUnittest.cpp)
|
2020-06-07 06:43:05 +00:00
|
|
|
add_executable(md5_unittest MD5Unittest.cpp)
|
2019-12-09 14:16:09 +00:00
|
|
|
add_executable(sha1_unittest SHA1Unittest.cpp ../lib/src/ssl_funcs/Sha1.cc)
|
2020-01-01 08:15:11 +00:00
|
|
|
add_executable(ostringstream_unittest OStringStreamUnitttest.cpp)
|
2020-04-26 15:23:03 +00:00
|
|
|
add_executable(base64_unittest Base64Unittest.cpp)
|
2020-05-24 12:42:00 +00:00
|
|
|
add_executable(pubsubservice_unittest PubSubServiceUnittest.cpp)
|
2020-06-05 12:57:36 +00:00
|
|
|
add_executable(httpdate_unittest HttpDateUnittest.cpp)
|
2020-08-26 12:28:19 +00:00
|
|
|
add_executable(httpheader_unittest HttpHeaderUnittest.cpp)
|
2020-04-04 10:15:15 +00:00
|
|
|
if(Brotli_FOUND)
|
|
|
|
add_executable(brotli_unittest BrotliUnittest.cpp)
|
|
|
|
endif()
|
2019-12-06 17:26:12 +00:00
|
|
|
|
|
|
|
set(UNITTEST_TARGETS
|
2020-01-25 03:58:20 +00:00
|
|
|
drogon_msgbuffer_unittest
|
2019-12-06 17:26:12 +00:00
|
|
|
drobject_unittest
|
2019-12-09 14:16:09 +00:00
|
|
|
gzip_unittest
|
|
|
|
md5_unittest
|
2020-01-01 08:15:11 +00:00
|
|
|
sha1_unittest
|
2020-04-26 15:23:03 +00:00
|
|
|
ostringstream_unittest
|
2020-05-24 12:42:00 +00:00
|
|
|
base64_unittest
|
2020-06-05 12:57:36 +00:00
|
|
|
pubsubservice_unittest
|
2020-08-26 12:28:19 +00:00
|
|
|
httpdate_unittest
|
|
|
|
httpheader_unittest)
|
2020-04-04 10:15:15 +00:00
|
|
|
if(Brotli_FOUND)
|
|
|
|
set(UNITTEST_TARGETS ${UNITTEST_TARGETS} brotli_unittest)
|
|
|
|
endif()
|
2019-12-09 14:16:09 +00:00
|
|
|
|
2019-12-06 17:26:12 +00:00
|
|
|
set_property(TARGET ${UNITTEST_TARGETS}
|
|
|
|
PROPERTY CXX_STANDARD ${DROGON_CXX_STANDARD})
|
|
|
|
set_property(TARGET ${UNITTEST_TARGETS} PROPERTY CXX_STANDARD_REQUIRED ON)
|
|
|
|
set_property(TARGET ${UNITTEST_TARGETS} PROPERTY CXX_EXTENSIONS OFF)
|
|
|
|
|
|
|
|
include(GoogleTest)
|
|
|
|
foreach(T ${UNITTEST_TARGETS})
|
2020-01-25 03:58:20 +00:00
|
|
|
target_link_libraries(${T} PRIVATE drogon GTest::GTest)
|
2019-12-06 17:26:12 +00:00
|
|
|
gtest_discover_tests(${T})
|
|
|
|
endforeach()
|