• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12 FATAL_ERROR)
2
3INCLUDE(GNUInstallDirs)
4
5# ---[ Project
6PROJECT(psimd C)
7
8# ---[ psimd library
9IF(${CMAKE_VERSION} VERSION_LESS "3.0")
10  ADD_LIBRARY(psimd STATIC include/psimd.h)
11  SET_TARGET_PROPERTIES(psimd PROPERTIES LINKER_LANGUAGE C)
12ELSE()
13  ADD_LIBRARY(psimd INTERFACE)
14ENDIF()
15TARGET_INCLUDE_DIRECTORIES(psimd INTERFACE include)
16
17INSTALL(FILES include/psimd.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
18