Add unitest
This commit is contained in:
@@ -13,18 +13,13 @@ FetchContent_MakeAvailable(googletest)
|
||||
enable_testing()
|
||||
|
||||
# ---------- Common paths (propagated to sub-projects via variables) ----------
|
||||
set(ANSLIB_INCLUDE_DIR "C:/Projects/ANLS/ANSLIB/ANSLIB" CACHE PATH "")
|
||||
set(ANSLIB_INCLUDE_DIR "C:/ProgramData/ANSCENTER/Shared" CACHE PATH "")
|
||||
set(OPENCV_INCLUDE_DIR "C:/ANSLibs/opencv/include" CACHE PATH "")
|
||||
set(ANSLIB_LIB_DIR "C:/ProgramData/ANSCENTER/Shared" CACHE PATH "")
|
||||
set(OPENCV_LIB_DIR "C:/ANSLibs/opencv/x64/vc17/lib" CACHE PATH "")
|
||||
set(OPENCV_BIN_DIR "C:/ProgramData/ANSCENTER/Shared" CACHE PATH "")
|
||||
set(TEST_COMMON_DIR "${CMAKE_CURRENT_SOURCE_DIR}" CACHE PATH "")
|
||||
|
||||
# ---------- Place all test .exe files alongside the DLLs they need ----------
|
||||
# This ensures custom model DLLs (built by sibling projects) land in the same
|
||||
# directory as the test executables so Windows can find them at runtime.
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" CACHE PATH "" FORCE)
|
||||
|
||||
# ---------- Sub-project test executables ----------
|
||||
add_subdirectory(FireNSmokeDetection)
|
||||
add_subdirectory(HelmetDetection)
|
||||
|
||||
Reference in New Issue
Block a user