2020-11-16 14:47:43 +08:00
|
|
|
|
|
|
|
set(lib_name cpufeatures)
|
|
|
|
set(target_name ${lib_name})
|
|
|
|
|
|
|
|
project(${lib_name})
|
|
|
|
|
2022-08-06 22:02:58 +08:00
|
|
|
add_library(${target_name} ${CMAKE_ANDROID_NDK}/sources/android/cpufeatures/cpu-features.c)
|
|
|
|
set(cpufeatures_include_dir ${CMAKE_ANDROID_NDK}/sources/android/cpufeatures CACHE INTERNAL "cpufeatures include directory")
|
2020-11-16 14:47:43 +08:00
|
|
|
|
|
|
|
set_target_properties(${target_name} PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES ${cpufeatures_include_dir})
|
|
|
|
|
|
|
|
target_link_libraries(${target_name} dl)
|