2009-05-23 02:11:21 +04:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
|
|
2008-08-07 07:30:56 +04:00
|
|
|
project (YAML_CPP)
|
2009-05-30 02:55:59 +04:00
|
|
|
set(LIBRARY_OUTPUT_PATH lib${LIB_SUFFIX})
|
|
|
|
|
set(LIB_INSTALL_DIR lib${LIB_SUFFIX})
|
|
|
|
|
set(INCLUDE_INSTALL_DIR include/yaml-cpp)
|
2009-05-23 02:11:21 +04:00
|
|
|
|
2009-05-30 02:48:25 +04:00
|
|
|
file(GLOB public_headers include/*.h)
|
|
|
|
|
file(GLOB private_headers src/*.h)
|
|
|
|
|
file(GLOB sources src/*.cpp)
|
2009-05-23 02:11:21 +04:00
|
|
|
|
|
|
|
|
include_directories(${YAML_CPP_SOURCE_DIR}/include)
|
|
|
|
|
add_library(yaml-cpp
|
2009-05-30 02:48:25 +04:00
|
|
|
${public_headers}
|
|
|
|
|
${private_headers}
|
|
|
|
|
${sources}
|
2009-05-23 02:11:21 +04:00
|
|
|
)
|
|
|
|
|
|
2009-05-30 02:55:59 +04:00
|
|
|
install(
|
|
|
|
|
TARGETS yaml-cpp
|
|
|
|
|
LIBRARY ARCHIVE
|
|
|
|
|
DESTINATION ${LIB_INSTALL_DIR}
|
|
|
|
|
)
|
|
|
|
|
install(
|
|
|
|
|
FILES ${public_headers}
|
|
|
|
|
DESTINATION ${INCLUDE_INSTALL_DIR}
|
|
|
|
|
)
|
|
|
|
|
|
2008-08-07 07:30:56 +04:00
|
|
|
add_subdirectory (yaml-reader)
|
2009-05-30 02:48:25 +04:00
|
|
|
|