CMake: Build LibTest[Main] in Libraries/LibTest not Meta/Lagom

As LibTest was not specified in TEST_DIRECTORIES, the existing
Libraries/LibTest subdirectory was not actually included during
configuration.
This commit is contained in:
ayeteadoe 2025-05-13 00:56:47 -07:00 committed by Andrew Kaster
commit d44ac0874f
Notes: github-actions[bot] 2025-05-14 08:06:42 +00:00
2 changed files with 8 additions and 27 deletions

View file

@ -1,16 +1,13 @@
serenity_install_sources("Libraries/LibTest")
add_library(LibTestMain OBJECT TestMain.cpp)
target_link_libraries(LibTestMain PUBLIC GenericClangPlugin)
add_library(JavaScriptTestRunnerMain OBJECT JavaScriptTestRunnerMain.cpp)
set(SOURCES
TestSuite.cpp
CrashTest.cpp
)
serenity_lib(LibTest test)
add_library(LibTestMain OBJECT TestMain.cpp)
add_library(JavaScriptTestRunnerMain OBJECT JavaScriptTestRunnerMain.cpp)
if (SERENITYOS)
add_dependencies(LibTestMain install_libc_headers)
add_dependencies(JavaScriptTestRunnerMain install_libc_headers)
endif()
add_library(LibTest ${SOURCES})
target_link_libraries(LibTest PRIVATE AK LibCore LibFileSystem)
set_target_properties(LibTest PROPERTIES OUTPUT_NAME lagom-test)