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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user