From 6c8e7af95eaf7e029ee7b607cef199760b1d0093 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Thu, 11 May 2017 10:37:15 +0200 Subject: [PATCH] Add install directive to CMake recipe --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 80b108c..5b1871c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,12 @@ add_library(HPCS SHARED ${libHPCS_SRCS}) target_link_libraries(HPCS PRIVATE ${ICU_LIBRARIES}) set_target_properties(HPCS PROPERTIES VERSION 5.0 - SOVERSION 5.0) + SOVERSION 5.0 + PUBLIC_HEADER "${PROJECT_SOURCE_DIR}/include/libhpcs.h") +install(TARGETS HPCS + LIBRARY DESTINATION lib + PUBLIC_HEADER DESTINATION include) + if (${BuildTestTool}) set(libHPCS_test_SRCS -- 2.43.5