mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 00:25:09 +00:00

These tests were never built for the serenity target. Move their Lagom build steps to the Lagom CMakeLists.txt, and add serenity build steps for them. Also, fix the build errors when building them with the serenity cross-compiler :^)
9 lines
380 B
CMake
9 lines
380 B
CMake
file(GLOB TEST_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
|
file(GLOB REGEX_SOURCES CONFIGURE_DEPENDS "../*.cpp" "../C/*.cpp")
|
|
|
|
foreach(source ${TEST_SOURCES})
|
|
get_filename_component(name ${source} NAME_WE)
|
|
add_executable(${name} ${source} ${REGEX_SOURCES})
|
|
target_link_libraries(${name} LibCore)
|
|
install(TARGETS ${name} RUNTIME DESTINATION usr/Tests/LibRegex)
|
|
endforeach()
|