2019-12-06 17:26:12 +00:00
|
|
|
add_executable(msgbuffer_unittest MsgBufferUnittest.cpp)
|
|
|
|
add_executable(drobject_unittest DrObjectUnittest.cpp)
|
|
|
|
add_executable(gzip_unittest GzipUnittest.cpp)
|
2019-12-09 14:16:09 +00:00
|
|
|
add_executable(md5_unittest MD5Unittest.cpp ../lib/src/ssl_funcs/Md5.cc)
|
|
|
|
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)
|
2019-12-06 17:26:12 +00:00
|
|
|
|
|
|
|
set(UNITTEST_TARGETS
|
|
|
|
msgbuffer_unittest
|
|
|
|
drobject_unittest
|
2019-12-09 14:16:09 +00:00
|
|
|
gzip_unittest
|
|
|
|
md5_unittest
|
2020-01-01 08:15:11 +00:00
|
|
|
sha1_unittest
|
|
|
|
ostringstream_unittest)
|
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})
|
|
|
|
target_link_libraries(${T} PRIVATE drogon gtest)
|
|
|
|
gtest_discover_tests(${T})
|
|
|
|
endforeach()
|