2026-03-28 19:56:39 +11:00
|
|
|
# ANSCORE Unit Tests
|
2026-09-12 23:38:48 +10:00
|
|
|
#
|
|
|
|
|
# A test is gated exactly like the code it exercises (see the top-level
|
|
|
|
|
# CMakeLists): tests for the CUDA-only modules, or that name CUDA::* targets
|
|
|
|
|
# themselves, are added only when ANSCORE_HAS_CUDA; tests for the Windows-only
|
|
|
|
|
# integrations only on WIN32. Without these gates a non-CUDA configure (macOS,
|
|
|
|
|
# any machine with no toolkit) fails at generate time on "links to CUDA::cudart
|
|
|
|
|
# but the target was not found", which blocks the cross-platform targets too.
|
|
|
|
|
|
|
|
|
|
# Cross-platform
|
2026-03-29 12:51:37 +11:00
|
|
|
add_subdirectory(ANSUtilities-UnitTest)
|
|
|
|
|
add_subdirectory(ANSRabbitMQ-UnitTest)
|
|
|
|
|
add_subdirectory(ANSLS-UnitTest)
|
2026-09-12 21:24:53 +10:00
|
|
|
add_subdirectory(ANSModelPackage-UnitTest)
|
2026-03-29 12:51:37 +11:00
|
|
|
add_subdirectory(ANSODTRE-UnitTest)
|
2026-09-12 23:38:48 +10:00
|
|
|
|
|
|
|
|
# Windows-only — integrations/ANSIO is built on WIN32 only
|
|
|
|
|
if(WIN32)
|
|
|
|
|
add_subdirectory(ANSIO-UnitTest)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
# CUDA-only — modules/ANSCV, ANSODEngine, ANSOCR, ANSFR and ANSLPR
|
|
|
|
|
if(ANSCORE_HAS_CUDA)
|
|
|
|
|
add_subdirectory(ANSCV-UnitTest)
|
|
|
|
|
add_subdirectory(ANSODEngine-UnitTest)
|
|
|
|
|
add_subdirectory(ANSFR-UnitTest)
|
|
|
|
|
add_subdirectory(ANSLPR-UnitTest)
|
|
|
|
|
add_subdirectory(ANSOCR-UnitTest)
|
|
|
|
|
|
|
|
|
|
# integrations/ANSONVIF itself uses no CUDA — the test does, because it
|
|
|
|
|
# drives capture through ANSCV. Hence both gates.
|
|
|
|
|
if(WIN32)
|
|
|
|
|
add_subdirectory(ANSONVIF-UnitTest)
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|