aosp12/external/psimd/CMakeLists.txt

18 lines
445 B
CMake
Raw Permalink Normal View History

2023-01-09 17:11:35 +08:00
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
INCLUDE(GNUInstallDirs)
# ---[ Project
PROJECT(psimd C)
# ---[ psimd library
IF(${CMAKE_VERSION} VERSION_LESS "3.0")
ADD_LIBRARY(psimd STATIC include/psimd.h)
SET_TARGET_PROPERTIES(psimd PROPERTIES LINKER_LANGUAGE C)
ELSE()
ADD_LIBRARY(psimd INTERFACE)
ENDIF()
TARGET_INCLUDE_DIRECTORIES(psimd INTERFACE include)
INSTALL(FILES include/psimd.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})