mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
20 lines
729 B
CMake
20 lines
729 B
CMake
find_package(GTest REQUIRED)
|
|
add_executable(msgbuffer_unittest MsgBufferUnittest.cc)
|
|
add_executable(inetaddress_unittest InetAddressUnittest.cc)
|
|
add_executable(date_unittest DateUnittest.cc)
|
|
add_executable(split_string_unittest splitStringUnittest.cc)
|
|
set(UNITTEST_TARGETS
|
|
msgbuffer_unittest
|
|
inetaddress_unittest
|
|
date_unittest
|
|
split_string_unittest)
|
|
set_property(TARGET ${UNITTEST_TARGETS} PROPERTY CXX_STANDARD 14)
|
|
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 trantor GTest::GTest)
|
|
gtest_discover_tests(${T})
|
|
endforeach()
|