ladybird/Tests/LibCore/CMakeLists.txt
Andreas Kling e87f889e31 Everywhere: Abandon Swift adoption
After making no progress on this for a very long time, let's acknowledge
it's not going anywhere and remove it from the codebase.
2026-02-17 10:48:09 -05:00

31 lines
948 B
CMake

set(TEST_SOURCES
TestLibCoreArgsParser.cpp
TestLibCoreDeferredInvoke.cpp
TestLibCoreEventLoop.cpp
TestLibCoreMappedFile.cpp
TestLibCoreMimeType.cpp
TestLibCorePromise.cpp
TestLibCoreSharedSingleProducerCircularQueue.cpp
TestLibCoreStream.cpp
)
# FIXME: Change these tests to use a portable tempfile directory
if (LINUX)
list(APPEND TEST_SOURCES
TestLibCoreFileWatcher.cpp
)
endif()
foreach(source IN LISTS TEST_SOURCES)
ladybird_test("${source}" LibCore)
endforeach()
target_link_libraries(TestLibCorePromise PRIVATE LibThreading)
target_link_libraries(TestLibCoreStream PRIVATE LibThreading)
if(NOT WIN32)
# These tests use the .txt files in the current directory
set_tests_properties(TestLibCoreMappedFile TestLibCoreStream PROPERTIES WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")
endif()
target_link_libraries(TestLibCoreSharedSingleProducerCircularQueue PRIVATE LibThreading)