Disable "hard" examples in CI
[qpms.git] / faddeeva / CMakeLists.txt
blob831778a3b621d1e2e5bf668fc5086efa75b202f5
1 cmake_minimum_required(VERSION 3.0)
2 include(GNUInstallDirs)
4 project(Faddeeva VERSION 1.0 LANGUAGES C)
6 option(FADDEEVA_BUILD_STATIC "Build Faddeeva as static library" OFF)
8 if (FADDEEVA_BUILD_STATIC)
9         add_library(Faddeeva STATIC Faddeeva.h Faddeeva.c Faddeeva.cc)
10 else (FADDEEVA_BUILD_STATIC)
11         add_library(Faddeeva SHARED Faddeeva.c)
12         set_target_properties(Faddeeva PROPERTIES PUBLIC_HEADER "Faddeeva.h")
13         install(TARGETS Faddeeva
14                 LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
15                 PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
16 endif (FADDEEVA_BUILD_STATIC)
17 target_include_directories(Faddeeva PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
18