Fixed installation (we now install the whole include header tree)

This commit is contained in:
beder
2011-10-18 14:55:31 -05:00
parent 692347fd97
commit b9a708d5b3

View File

@@ -64,6 +64,8 @@ configure_file(${YAML_CPP_SOURCE_DIR}/include/yaml-cpp/yaml.h.cmake ${YAML_CPP_S
### ###
### Sources, headers, directories and libs ### Sources, headers, directories and libs
### ###
set(header_directory "include/yaml-cpp/")
file(GLOB common_sources "src/[a-zA-Z]*.cpp") file(GLOB common_sources "src/[a-zA-Z]*.cpp")
file(GLOB new_api_sources file(GLOB new_api_sources
"src/node/[a-zA-Z]*.cpp" "src/node/[a-zA-Z]*.cpp"
@@ -294,10 +296,9 @@ endif()
install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS}) install(TARGETS yaml-cpp ${_INSTALL_DESTINATIONS})
install( install(
FILES DIRECTORY ${header_directory}
${public_headers}
${contrib_public_headers}
DESTINATION ${INCLUDE_INSTALL_DIR} DESTINATION ${INCLUDE_INSTALL_DIR}
FILES_MATCHING PATTERN "*.h"
) )
if(UNIX) if(UNIX)