Commit 67f49d96 authored by Jesse Beder's avatar Jesse Beder
Browse files

Patched - install target

parent 820f45b1
cmake_minimum_required(VERSION 2.6) cmake_minimum_required(VERSION 2.6)
project (YAML_CPP) project (YAML_CPP)
set(LIBRARY_OUTPUT_PATH ${YAML_CPP_SOURCE_DIR}/lib) set(LIBRARY_OUTPUT_PATH lib${LIB_SUFFIX})
set(LIB_INSTALL_DIR lib${LIB_SUFFIX})
set(INCLUDE_INSTALL_DIR include/yaml-cpp)
file(GLOB public_headers include/*.h) file(GLOB public_headers include/*.h)
file(GLOB private_headers src/*.h) file(GLOB private_headers src/*.h)
...@@ -14,5 +16,15 @@ add_library(yaml-cpp ...@@ -14,5 +16,15 @@ add_library(yaml-cpp
${sources} ${sources}
) )
install(
TARGETS yaml-cpp
LIBRARY ARCHIVE
DESTINATION ${LIB_INSTALL_DIR}
)
install(
FILES ${public_headers}
DESTINATION ${INCLUDE_INSTALL_DIR}
)
add_subdirectory (yaml-reader) add_subdirectory (yaml-reader)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment