Browse Source

#IQRV #comment 添加 ARCH_AARCH64 标识

gifur 5 năm trước cách đây
mục cha
commit
b521ee635a
2 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 2 0
      Other/CMakeLists.txt
  2. 6 0
      addin/cmake/ConfigOptions.cmake

+ 2 - 0
Other/CMakeLists.txt

@@ -4,5 +4,7 @@ endif(SIMULATE_ON)
 
 add_subdirectory(libimageproc)
 add_subdirectory(libpublicFun)
+add_subdirectory(libscreencodec)
+add_subdirectory(libbizchan)
 
 # rvc_add_all_cmake_subdirectory()

+ 6 - 0
addin/cmake/ConfigOptions.cmake

@@ -13,6 +13,12 @@ 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)