From e3cdcaf807ff3833f2a9ef642301bcaa3172a8ad Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 9 Feb 2021 18:11:57 +0530 Subject: Install headers and shared library. * CMakeLists.txt: Install headers and shared library. --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 360b931..935c3b3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,4 +30,10 @@ endforeach() include_directories("include") +include(GNUInstallDirs) + add_library(extentsampling SHARED ${C_SOURCES}) +set_target_properties(extentsampling PROPERTIES + PUBLIC_HEADER "include/extent-sampling.h;include/gaussian-nd-random.h;include/nd-random.h;include/oracles.h") +install(TARGETS extentsampling LIBRARY + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/extent-sampling) -- cgit v1.2.3