Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
820f45b1
Commit
820f45b1
authored
May 29, 2009
by
Jesse Beder
Browse files
Patch to simplify CMakeLists.txt files
parent
9a1a3974
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
66 deletions
+11
-66
CMakeLists.txt
CMakeLists.txt
+8
-63
yaml-reader/CMakeLists.txt
yaml-reader/CMakeLists.txt
+3
-3
No files found.
CMakeLists.txt
View file @
820f45b1
cmake_minimum_required
(
VERSION 2.6
)
cmake_minimum_required
(
VERSION 2.6
)
project
(
YAML_CPP
)
project
(
YAML_CPP
)
set
(
LIBRARY_OUTPUT_PATH
${
PROJECT
_SOURCE_DIR
}
/lib
)
set
(
LIBRARY_OUTPUT_PATH
${
YAML_CPP
_SOURCE_DIR
}
/lib
)
set
(
PUB_HDR
file
(
GLOB public_headers include/*.h
)
include/conversion.h
file
(
GLOB private_headers src/*.h
)
include/crt.h
file
(
GLOB sources src/*.cpp
)
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/conversion.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
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
add_library
(
yaml-cpp
add_library
(
yaml-cpp
${
PUB_HDR
}
${
public_headers
}
${
PVT_HDR
}
${
private_headers
}
${
SRC
}
${
sources
}
)
)
add_subdirectory
(
yaml-reader
)
add_subdirectory
(
yaml-reader
)
yaml-reader/CMakeLists.txt
View file @
820f45b1
set
(
FILES
main.cpp tests.cpp
)
set
(
yaml-reader_sources
main.cpp tests.cpp
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
link_directories
(
${
YAML_CPP_
BINARY
_DIR
}
/
bin
)
link_directories
(
${
YAML_CPP_
SOURCE
_DIR
}
/
lib
)
add_executable
(
yaml-reader
${
FILES
}
)
add_executable
(
yaml-reader
${
yaml-reader_sources
}
)
target_link_libraries
(
yaml-reader yaml-cpp
)
target_link_libraries
(
yaml-reader yaml-cpp
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment