You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by si...@apache.org on 2018/09/09 23:50:52 UTC

[incubator-pulsar] branch master updated: Added cmake install for lib and headers (#2529)

This is an automated email from the ASF dual-hosted git repository.

sijie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 1c72ac3  Added cmake install for lib and headers (#2529)
1c72ac3 is described below

commit 1c72ac3fb1d20b4f12300c4d339cb1a383d718ae
Author: Matteo Merli <mm...@apache.org>
AuthorDate: Sun Sep 9 16:50:49 2018 -0700

    Added cmake install for lib and headers (#2529)
    
    ### Motivation
    
    Added `install` target to do local install for C++ client lib
---
 pulsar-client-cpp/lib/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pulsar-client-cpp/lib/CMakeLists.txt b/pulsar-client-cpp/lib/CMakeLists.txt
index 5b2dbf9..2116ed6 100644
--- a/pulsar-client-cpp/lib/CMakeLists.txt
+++ b/pulsar-client-cpp/lib/CMakeLists.txt
@@ -45,3 +45,7 @@ set_target_properties(pulsarShared PROPERTIES OUTPUT_NAME ${LIB_NAME} VERSION ${
 target_link_libraries(pulsarStatic ${COMMON_LIBS})
 target_link_libraries(pulsarShared ${COMMON_LIBS})
 
+install(TARGETS pulsarStatic DESTINATION lib)
+install(TARGETS pulsarShared DESTINATION lib)
+
+install(DIRECTORY "../include/pulsar" DESTINATION include)
\ No newline at end of file