Fix tests link with library in cmake

This commit is contained in:
sha512sum 2024-08-27 10:09:34 +00:00
parent 5874783d37
commit a4a5df3f27

View file

@ -165,7 +165,7 @@ if(ENABLE_TESTS)
target_sources(larra_xmpp_tests PUBLIC FILE_SET tests TYPE CXX_MODULES
FILES ${SOURCES})
target_link_libraries(larra_xmpp_tests GTest::gtest_main
xmpp_client_lib)
larra_xmpp)
set_property(TARGET larra_xmpp_tests PROPERTY CXX_STANDARD 23)
include(GoogleTest)
gtest_discover_tests(larra_xmpp_tests)