From ab607ff373ea263c62682f72459086319cb767ee Mon Sep 17 00:00:00 2001 From: Philippe Liard Date: Thu, 23 Jun 2011 09:03:27 +0000 Subject: [PATCH] CPP: Add install rules to CMakeLists to support make install. --- cpp/CMakeLists.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 7d9fd84ad..1eca57f0f 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -302,3 +302,23 @@ target_link_libraries ( libphonenumber_test phonenumber_testing ${GTEST_LIB} pthread ) + +# Install rules. +install (FILES src/phonenumber.pb.h DESTINATION include/phonenumbers/) +install (FILES src/phonenumberutil.h DESTINATION include/phonenumbers/) + +install (FILES + src/base/basictypes.h + src/base/scoped_ptr.h + src/base/singleton.h + DESTINATION include/phonenumbers/base/ +) +install (FILES src/base/synchronization/lock.h + DESTINATION include/phonenumbers/base/synchronization) + +install (TARGETS phonenumber LIBRARY DESTINATION lib/ ARCHIVE DESTINATION lib/) + +if (BUILD_SHARED_LIB) + install (TARGETS phonenumber-shared LIBRARY DESTINATION lib/ ARCHIVE + DESTINATION lib/) +endif ()