set(INSTALL_INCLUDE_DIR"include/darknet"CACHEPATH"Path where headers will be installed")
set(INSTALL_CMAKE_DIR"share/darknet"CACHEPATH"Path where cmake configs will be installed")
if(${CMAKE_VERSION}VERSION_LESS"3.9.0")
message(WARNING"To build with CUDA support you need CMake 3.9.0+")
set(ENABLE_CUDA"FALSE"CACHEBOOL"Enable CUDA support"FORCE)
else()
include(CheckLanguage)
check_language(CUDA)
if(CMAKE_CUDA_COMPILERANDENABLE_CUDA)
set(CUDA_ARCHITECTURES"Auto"CACHESTRING"\"Auto\" detects local machine GPU compute arch at runtime, \"Common\" and \"All\" cover common and entire subsets of architectures, \"Names\" is a list of architectures to enable by name, \"Numbers\" is a list of compute capabilities (version number) to enable")