mirror of
https://github.com/ProjectSkyfire/SkyFire_548
synced 2026-08-18 06:32:13 -04:00
CMake: Add cmake macro for sse2neon.
This commit is contained in:
parent
495b1cb219
commit
14e1c9df50
2 changed files with 32 additions and 0 deletions
|
|
@ -72,6 +72,10 @@ if( UNIX )
|
|||
find_package(ZLIB)
|
||||
find_package(BZip2)
|
||||
find_package(Jemalloc)
|
||||
|
||||
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch")
|
||||
find_package(sse2neon)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT WITHOUT_GIT)
|
||||
|
|
|
|||
28
cmake/macros/Findsse2neon.cmake
Normal file
28
cmake/macros/Findsse2neon.cmake
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#
|
||||
# This file is part of Project SkyFire https://www.projectskyfire.org.
|
||||
# See COPYRIGHT file for Copyright information
|
||||
#
|
||||
|
||||
if (CMAKE_SYSTEM_PROCESSOR MATCHES "aarch")
|
||||
|
||||
find_path(SSE2NEON_INCLUDE_DIR
|
||||
NAMES
|
||||
sse2neon.h
|
||||
HINTS
|
||||
${CMAKE_SOURCE_DIR}/dep/
|
||||
PATH_SUFFIXES
|
||||
sse2neon
|
||||
)
|
||||
|
||||
# handle the QUIETLY and REQUIRED arguments and set SSE2NEON_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(sse2neon DEFAULT_MSG SSE2NEON_INCLUDE_DIR)
|
||||
|
||||
if(SSE2NEON_FOUND)
|
||||
set(SSE2NEON_INCLUDE_DIRS ${SSE2NEON_INCLUDE_DIR})
|
||||
endif()
|
||||
|
||||
mark_as_advanced(SSE2NEON_INCLUDE_DIR)
|
||||
|
||||
endif()
|
||||
Loading…
Add table
Add a link
Reference in a new issue