1
0
mirror of https://github.com/fumiama/base16384-sycl.git synced 2026-06-05 00:32:49 +08:00

feat: add -DBUILD=test & test CI

This commit is contained in:
源文雨
2025-10-13 13:54:20 +08:00
parent f49ef918c4
commit 7bbaa213b4
7 changed files with 71 additions and 10 deletions

View File

@@ -70,9 +70,11 @@ endif()
add_subdirectory(libs)
message(STATUS "Collected libs: ${B14LIBS}")
enable_testing()
add_subdirectory(tests)
message(STATUS "Collected tests: ${B14TESTS}")
if (BUILD STREQUAL "test")
enable_testing()
add_subdirectory(tests)
message(STATUS "Collected tests: ${B14TESTS}")
endif ()
foreach(TARGET_NAME ${B14TESTS})
target_link_libraries(${TARGET_NAME} ${B14LIBS})