From 06e2ee364dface41bd6593b1831ee209d27aaec8 Mon Sep 17 00:00:00 2001 From: William Brawner Date: Tue, 31 Dec 2019 13:07:47 -0600 Subject: [PATCH] Add header file installation --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9955d80..a2f96ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required (VERSION 3.15.5) +include(GNUInstallDirs) + set(PIHELPER_VERSION 0.1.0) project( @@ -11,4 +13,5 @@ add_subdirectory(PiHelper) install(TARGETS pihelper libpihelper) -#target_link_libraries(PiHelper SHARED cJSON) +install(FILES PiHelper/pihelper.h DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}/pihelper") +