From f87dced5c93e5c5c7d90a05cd6f4a854c4fbda40 Mon Sep 17 00:00:00 2001 From: Jesse Beder Date: Tue, 18 Oct 2011 14:55:31 -0500 Subject: [PATCH] Fixed installation (we now install the whole include header tree) --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc67965..eb6b339 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -64,6 +64,8 @@ configure_file(${YAML_CPP_SOURCE_DIR}/include/yaml-cpp/yaml.h.cmake ${YAML_CPP_S ### ### Sources, headers, directories and libs ### +set(header_directory "include/yaml-cpp/") + file(GLOB common_sources "src/[a-zA-Z]*.cpp") file(GLOB new_api_sources "src/node/[a-zA-Z]*.cpp" @@ -294,10 +296,9 @@ endif() install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS}) install( - FILES - ${public_headers} - ${contrib_public_headers} + DIRECTORY ${header_directory} DESTINATION ${INCLUDE_INSTALL_DIR} + FILES_MATCHING PATTERN "*.h" ) if(UNIX)