[libsigcplusplus/cmake-integration] cmake: install headers from sigc++ directory
- From: Marcin Kolny <mkolny src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsigcplusplus/cmake-integration] cmake: install headers from sigc++ directory
- Date: Sat, 12 Mar 2016 14:33:03 +0000 (UTC)
commit 5e7a8f87be5654305b479a1fd040475cb63f626b
Author: Marcin Kolny <marcin kolny gmail com>
Date: Sat Mar 12 15:28:28 2016 +0100
cmake: install headers from sigc++ directory
sigc++/CMakeLists.txt | 22 ++++++++++++++--------
1 files changed, 14 insertions(+), 8 deletions(-)
---
diff --git a/sigc++/CMakeLists.txt b/sigc++/CMakeLists.txt
index 0653285..00ecdef 100644
--- a/sigc++/CMakeLists.txt
+++ b/sigc++/CMakeLists.txt
@@ -30,13 +30,19 @@ add_library(${SIGCPP_LIB_NAME} SHARED ${SOURCE_FILES})
set_property (TARGET ${SIGCPP_LIB_NAME} PROPERTY VERSION ${PACKAGE_VERSION})
set_property(TARGET ${SIGCPP_LIB_NAME} PROPERTY SOVERSION ${LIBSIGCPP_SOVERSION})
-file (GLOB SIGCPP_HEADERS ${PROJECT_SOURCE_DIR}/*.h)
-file (GLOB SIGCPP_ADAPTOR_HEADERS ${PROJECT_SOURCE_DIR}/adaptors/*.h)
-file (GLOB SIGCPP_FUNCTOR_HEADERS ${PROJECT_SOURCE_DIR}/functors/*.h)
+install (
+ TARGETS
+ ${SIGCPP_LIB_NAME}
+ DESTINATION
+ lib
+)
-set (SIGCPP_INCLUDE_DIR include/sigc++-${SIGCXX_API_VERSION}/sigc++)
-install (TARGETS ${SIGCPP_LIB_NAME} DESTINATION lib)
-install (FILES ${SIGCPP_HEADERS} DESTINATION ${SIGCPP_INCLUDE_DIR})
-install (FILES ${SIGCPP_ADAPTOR_HEADERS} DESTINATION ${SIGCPP_INCLUDE_DIR}/adaptors)
-install (FILES ${SIGCPP_FUNCTOR_HEADERS} DESTINATION ${SIGCPP_INCLUDE_DIR}/functors)
+install (
+ DIRECTORY
+ "${PROJECT_SOURCE_DIR}"
+ DESTINATION
+ "include/sigc++-${SIGCXX_API_VERSION}"
+ FILES_MATCHING PATTERN
+ "*.h"
+)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]