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_DEBUG_SYMBOLS "Pack debug symbols to installer" OFF) option(WITH_THIRD_PARTY "Build third-party components" ON) option(SIMULATE_ON "/run/version/1.2.3.4/" OFF) option(BUILD_MODULE "whether build entity module or not" ON) option(BUILD_TOOLS "whether build tools or not" ON) option(BUILD_PLUGINS "whether build plugins 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_UPDATE_CHANGELOG "scheduling producting changelog html format result" OFF) option(WITH_UNAUTHORIZED_RES "download other resource file or for skipping big file mechanism like hardware driver" OFF)