include(CMakeDependentOption) if((CMAKE_SYSTEM_PROCESSOR MATCHES "i386|i686|x86|AMD64") AND (CMAKE_SIZEOF_VOID_P EQUAL 4)) set(TARGET_ARCH "x86") elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|AMD64") AND (CMAKE_SIZEOF_VOID_P EQUAL 8)) set(TARGET_ARCH "x64") elseif((CMAKE_SYSTEM_PROCESSOR MATCHES "i386") AND (CMAKE_SIZEOF_VOID_P EQUAL 8) AND (APPLE)) # Mac is weird like that. set(TARGET_ARCH "x64") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm*") set(TARGET_ARCH "ARM") elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "sparc") set(TARGET_ARCH "sparc") endif() if((NOT MSVC) AND (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")) SET(ARCH_AARCH64 TRUE) else() SET(ARCH_AARCH64 FALSE) endif((NOT MSVC) AND (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")) option(WITH_IPP "Use Intel Performance Primitives." OFF) option(BUILD_TESTING "Build the project test case." OFF) option(WITH_THIRD_PARTY "Build third-party components" ON) option(BUILD_COREFRAMEWORK "whether build framework or not" ON) option(BUILD_MODULE "whether build entity module or not" ON) option(BUILD_TOOLS "whether build tools or not" ON) option(BUILD_DEVADAPTER "whether build device adapter or not" ON) option(WITH_LOCAL_DEVLIB "build dev adapter with local dependency libraries except conan" OFF) option(WITH_CI_NUMBER "increment build number, especially CI environment" OFF) option(PACK_AS_DEB_PKG "build the project and package as debian type " OFF) option(CONAN_CACHE_CLEAR "remove local conan dependencies" OFF) option(WITH_ADDITIONAL_RES "download other resource file or for skipping big file mechanism like sogouime" OFF) # depreate now 20230420@Gifur option(WITH_UPDATE_FORMAT "build the artifictory as update pacakge format" OFF) option(WITH_UNAUTHORIZED_RES "download other resource file or for skipping big file mechanism like hardware driver" OFF) option(DEVOPS_INSTALL_SWITCH "install at devpos for pkging as zip easily" OFF) option(WITH_PDB_SAVE "save pdb file, copy pdb 2 version and pack from it" OFF) option(WITH_PDB_SAVEV2 "save pdb file, pack pdb from build dir directily" OFF) option(WITH_LABEL_RECORD "save artificatory file label to avs" OFF) option(WITH_GITFUR_LOCALCP "copy the file from dev" OFF)