mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
Tests: Move Tests CMake rules to Tests/CMakeLists.txt
Get this logic out of Meta/Lagom/CMakeLists.txt, in the hope that we can eventually remove the Lagom CMakeLists.txt file entirely.
This commit is contained in:
parent
26c76a8347
commit
e4fb3a86a1
Notes:
github-actions[bot]
2025-05-19 22:38:26 +00:00
Author: https://github.com/ADKaster
Commit: e4fb3a86a1
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4821
Reviewed-by: https://github.com/trflynn89 ✅
2 changed files with 16 additions and 43 deletions
|
@ -413,45 +413,10 @@ endif()
|
||||||
# Lagom Utilities
|
# Lagom Utilities
|
||||||
add_serenity_subdirectory(Utilities)
|
add_serenity_subdirectory(Utilities)
|
||||||
|
|
||||||
|
# Tests
|
||||||
include(CTest)
|
include(CTest)
|
||||||
if (BUILD_TESTING)
|
if (BUILD_TESTING)
|
||||||
# LibTest tests from Tests/
|
add_serenity_subdirectory(Tests)
|
||||||
set(TEST_DIRECTORIES
|
|
||||||
AK
|
|
||||||
LibCrypto
|
|
||||||
LibCompress
|
|
||||||
LibCore
|
|
||||||
LibDiff
|
|
||||||
LibDNS
|
|
||||||
LibGC
|
|
||||||
LibJS
|
|
||||||
LibRegex
|
|
||||||
LibTest
|
|
||||||
LibTextCodec
|
|
||||||
LibThreading
|
|
||||||
LibTLS
|
|
||||||
LibUnicode
|
|
||||||
LibURL
|
|
||||||
LibWasm
|
|
||||||
LibXML
|
|
||||||
)
|
|
||||||
|
|
||||||
if (ENABLE_GUI_TARGETS)
|
|
||||||
list(APPEND TEST_DIRECTORIES
|
|
||||||
LibGfx
|
|
||||||
LibMedia
|
|
||||||
LibWeb
|
|
||||||
LibWebView
|
|
||||||
)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (ENABLE_CLANG_PLUGINS AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
|
||||||
list(APPEND TEST_DIRECTORIES ClangPlugins)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
foreach (dir IN LISTS TEST_DIRECTORIES)
|
|
||||||
add_serenity_subdirectory("Tests/${dir}")
|
|
||||||
endforeach()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
install(TARGETS js COMPONENT js)
|
install(TARGETS js COMPONENT js)
|
||||||
|
|
|
@ -1,20 +1,28 @@
|
||||||
add_subdirectory(AK)
|
add_subdirectory(AK)
|
||||||
|
add_subdirectory(LibCrypto)
|
||||||
add_subdirectory(LibCompress)
|
add_subdirectory(LibCompress)
|
||||||
add_subdirectory(LibCore)
|
add_subdirectory(LibCore)
|
||||||
add_subdirectory(LibDiff)
|
add_subdirectory(LibDiff)
|
||||||
add_subdirectory(LibDNS)
|
add_subdirectory(LibDNS)
|
||||||
add_subdirectory(LibGfx)
|
add_subdirectory(LibGC)
|
||||||
add_subdirectory(LibJS)
|
add_subdirectory(LibJS)
|
||||||
add_subdirectory(LibRegex)
|
add_subdirectory(LibRegex)
|
||||||
add_subdirectory(LibTest)
|
add_subdirectory(LibTest)
|
||||||
add_subdirectory(LibTextCodec)
|
add_subdirectory(LibTextCodec)
|
||||||
add_subdirectory(LibThreading)
|
add_subdirectory(LibThreading)
|
||||||
|
add_subdirectory(LibTLS)
|
||||||
add_subdirectory(LibUnicode)
|
add_subdirectory(LibUnicode)
|
||||||
add_subdirectory(LibURL)
|
add_subdirectory(LibURL)
|
||||||
add_subdirectory(LibMedia)
|
|
||||||
add_subdirectory(LibWasm)
|
add_subdirectory(LibWasm)
|
||||||
add_subdirectory(LibWeb)
|
|
||||||
add_subdirectory(LibWebView)
|
|
||||||
add_subdirectory(LibXML)
|
add_subdirectory(LibXML)
|
||||||
add_subdirectory(LibCrypto)
|
|
||||||
add_subdirectory(LibTLS)
|
if (ENABLE_GUI_TARGETS)
|
||||||
|
add_subdirectory(LibGfx)
|
||||||
|
add_subdirectory(LibMedia)
|
||||||
|
add_subdirectory(LibWeb)
|
||||||
|
add_subdirectory(LibWebView)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (ENABLE_CLANG_PLUGINS AND CMAKE_CXX_COMPILER_ID MATCHES "Clang$")
|
||||||
|
add_subdirectory(ClangPlugins)
|
||||||
|
endif()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue