mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Patched - install target
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
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
|
|||||||
${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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user