21 lines
712 B
CMake
21 lines
712 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
project(ANSCustomModels LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
|
|
# Place all build outputs (.exe and .dll) in the same directory so our own
|
|
# custom model DLLs are found next to the test/demo executables at runtime.
|
|
# External DLLs (ANSLIB, OpenCV, etc.) are loaded from C:\ProgramData\ANSCENTER\Shared.
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
|
|
|
|
add_subdirectory(ANSCustomHelmetDetection)
|
|
add_subdirectory(ANSCustomFireNSmokeDetection)
|
|
add_subdirectory(ANSCustomWeaponDetection)
|
|
|
|
# Unit & integration tests (Google Test)
|
|
option(BUILD_TESTS "Build unit tests" ON)
|
|
if(BUILD_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|