blob: bd69c62024f1d06e1d399fe9e96e915948f8f066 [file] [log] [blame] [edit]
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})