Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1196ee8ba | ||
|
|
6abe6d6694 |
@@ -6,6 +6,7 @@ Release/
|
|||||||
out/
|
out/
|
||||||
|
|
||||||
# CLion / CMake
|
# CLion / CMake
|
||||||
|
build/
|
||||||
.idea/
|
.idea/
|
||||||
cmake-build-debug/
|
cmake-build-debug/
|
||||||
cmake-build-release/
|
cmake-build-release/
|
||||||
|
|||||||
+13
-2
@@ -154,7 +154,11 @@ include(cmake/Dependencies.cmake)
|
|||||||
# Core — licensing & infrastructure
|
# Core — licensing & infrastructure
|
||||||
add_subdirectory(core/anslicensing)
|
add_subdirectory(core/anslicensing)
|
||||||
add_subdirectory(core/ANSLicensingSystem)
|
add_subdirectory(core/ANSLicensingSystem)
|
||||||
add_subdirectory(core/ANSLibsLoader)
|
# ANSLibsLoader dynamically binds cudart/cuBLAS/nvJPEG at runtime, but it still
|
||||||
|
# compiles against <cuda_runtime.h> for their types and links CUDA::cudart_static.
|
||||||
|
if(ANSCORE_HAS_CUDA)
|
||||||
|
add_subdirectory(core/ANSLibsLoader)
|
||||||
|
endif()
|
||||||
add_subdirectory(core/ANSModelPackage)
|
add_subdirectory(core/ANSModelPackage)
|
||||||
|
|
||||||
# Modules — feature DLLs (cross-platform)
|
# Modules — feature DLLs (cross-platform)
|
||||||
@@ -178,11 +182,18 @@ if(ANSCORE_HAS_CUDA)
|
|||||||
add_subdirectory(modules/ANSOCR)
|
add_subdirectory(modules/ANSOCR)
|
||||||
add_subdirectory(modules/ANSFR)
|
add_subdirectory(modules/ANSFR)
|
||||||
add_subdirectory(modules/ANSLPR)
|
add_subdirectory(modules/ANSLPR)
|
||||||
|
# ANSCV hosts NVDEC decode, the NV12 GPU frame pool and the nvJPEG encoder:
|
||||||
|
# ANSGpuFrameOps.h includes <cuda_runtime.h> unconditionally and calls
|
||||||
|
# cudaMemcpy2D/cudaMallocPitch directly, so it needs the toolkit like the
|
||||||
|
# engine modules do.
|
||||||
|
add_subdirectory(modules/ANSCV)
|
||||||
endif()
|
endif()
|
||||||
add_subdirectory(modules/ANSCV)
|
|
||||||
|
|
||||||
# Facade
|
# Facade
|
||||||
add_subdirectory(ANSLIB)
|
add_subdirectory(ANSLIB)
|
||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
|
# enable_testing() (not include(CTest), which would add Nightly/Experimental
|
||||||
|
# targets) so the add_test() calls under tests/ reach ctest.
|
||||||
|
enable_testing()
|
||||||
add_subdirectory(tests)
|
add_subdirectory(tests)
|
||||||
|
|||||||
+29
-7
@@ -1,13 +1,35 @@
|
|||||||
# ANSCORE Unit Tests
|
# ANSCORE Unit Tests
|
||||||
add_subdirectory(ANSCV-UnitTest)
|
#
|
||||||
add_subdirectory(ANSODEngine-UnitTest)
|
# A test is gated exactly like the code it exercises (see the top-level
|
||||||
add_subdirectory(ANSFR-UnitTest)
|
# CMakeLists): tests for the CUDA-only modules, or that name CUDA::* targets
|
||||||
add_subdirectory(ANSLPR-UnitTest)
|
# themselves, are added only when ANSCORE_HAS_CUDA; tests for the Windows-only
|
||||||
add_subdirectory(ANSOCR-UnitTest)
|
# 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
|
||||||
add_subdirectory(ANSUtilities-UnitTest)
|
add_subdirectory(ANSUtilities-UnitTest)
|
||||||
add_subdirectory(ANSRabbitMQ-UnitTest)
|
add_subdirectory(ANSRabbitMQ-UnitTest)
|
||||||
add_subdirectory(ANSIO-UnitTest)
|
|
||||||
add_subdirectory(ANSLS-UnitTest)
|
add_subdirectory(ANSLS-UnitTest)
|
||||||
add_subdirectory(ANSModelPackage-UnitTest)
|
add_subdirectory(ANSModelPackage-UnitTest)
|
||||||
add_subdirectory(ANSONVIF-UnitTest)
|
|
||||||
add_subdirectory(ANSODTRE-UnitTest)
|
add_subdirectory(ANSODTRE-UnitTest)
|
||||||
|
|
||||||
|
# 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user