1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: reactivate CMake tests in root build directory (issue #1462)

This fixes the command `ctest` executed in the root build directory.
It was removed by accident in commit 68d87f2b80.
This commit is contained in:
Sébastien Helleu
2025-05-11 10:15:08 +02:00
parent 1fe23d9233
commit 1efa9d6b08
2 changed files with 13 additions and 10 deletions
+12
View File
@@ -284,6 +284,18 @@ endif()
add_subdirectory(src)
add_subdirectory(doc)
if(ENABLE_TESTS)
find_package(CppUTest)
if(CPPUTEST_FOUND)
enable_testing()
else()
message(SEND_ERROR "CppUTest not found")
endif()
else()
enable_testing()
add_test(NAME notests COMMAND true)
endif()
add_subdirectory(tests)
configure_file(config.h.cmake config.h @ONLY)