ConfigOptions.cmake 2.1 KB

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