mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Restructured CMake file to include headers, and to be better organized
This commit is contained in:
@@ -1,4 +1,71 @@
|
||||
cmake_minimum_required(VERSION 2.6)
|
||||
|
||||
project (YAML_CPP)
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
||||
add_subdirectory (src)
|
||||
|
||||
set(PUB_HDR
|
||||
include/crt.h
|
||||
include/emitter.h
|
||||
include/emittermanip.h
|
||||
include/exceptions.h
|
||||
include/iterator.h
|
||||
include/node.h
|
||||
include/noncopyable.h
|
||||
include/ostream.h
|
||||
include/parser.h
|
||||
include/parserstate.h
|
||||
include/stlemitter.h
|
||||
include/yaml.h
|
||||
)
|
||||
|
||||
set(PVT_HDR
|
||||
src/alias.h
|
||||
src/content.h
|
||||
src/emitterstate.h
|
||||
src/emitterutils.h
|
||||
src/exp.h
|
||||
src/indentation.h
|
||||
src/iterpriv.h
|
||||
src/ltnode.h
|
||||
src/map.h
|
||||
src/regex.h
|
||||
src/scalar.h
|
||||
src/scanner.h
|
||||
src/scanscalar.h
|
||||
src/sequence.h
|
||||
src/setting.h
|
||||
src/stream.h
|
||||
src/token.h
|
||||
)
|
||||
|
||||
set(SRC
|
||||
src/alias.cpp
|
||||
src/content.cpp
|
||||
src/emitter.cpp
|
||||
src/emitterstate.cpp
|
||||
src/emitterutils.cpp
|
||||
src/exp.cpp
|
||||
src/iterator.cpp
|
||||
src/map.cpp
|
||||
src/node.cpp
|
||||
src/ostream.cpp
|
||||
src/parser.cpp
|
||||
src/parserstate.cpp
|
||||
src/regex.cpp
|
||||
src/scalar.cpp
|
||||
src/scanner.cpp
|
||||
src/scanscalar.cpp
|
||||
src/scantoken.cpp
|
||||
src/sequence.cpp
|
||||
src/simplekey.cpp
|
||||
src/stream.cpp
|
||||
)
|
||||
|
||||
include_directories(${YAML_CPP_SOURCE_DIR}/include)
|
||||
add_library(yaml-cpp
|
||||
${PUB_HDR}
|
||||
${PVT_HDR}
|
||||
${SRC}
|
||||
)
|
||||
|
||||
add_subdirectory (yaml-reader)
|
||||
|
@@ -1,9 +0,0 @@
|
||||
set(FILES alias.cpp content.cpp iterator.cpp node.cpp parserstate.cpp
|
||||
scalar.cpp scanscalar.cpp sequence.cpp stream.cpp
|
||||
exp.cpp map.cpp parser.cpp regex.cpp scanner.cpp
|
||||
scantoken.cpp simplekey.cpp
|
||||
emitter.cpp emitterstate.h emitterstate.cpp emitterutils.h emitterutils.cpp
|
||||
ostream.cpp)
|
||||
|
||||
include_directories(${YAML_CPP_SOURCE_DIR}/include)
|
||||
add_library(yaml-cpp ${FILES})
|
Reference in New Issue
Block a user