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:48:25 +04:00
|
|
|
set(LIBRARY_OUTPUT_PATH ${YAML_CPP_SOURCE_DIR}/lib)
|
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
|
|
|
)
|
|
|
|
|
|
2008-08-07 07:30:56 +04:00
|
|
|
add_subdirectory (yaml-reader)
|
2009-05-30 02:48:25 +04:00
|
|
|
|