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
6e0e9554
Commit
6e0e9554
authored
Mar 17, 2011
by
Jesse Beder
Browse files
Added eol-style=native prop to missing files
parent
dc5bd4af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
297 additions
and
297 deletions
+297
-297
CMakeLists.txt
CMakeLists.txt
+279
-279
license.txt
license.txt
+18
-18
No files found.
CMakeLists.txt
View file @
6e0e9554
###
###
### CMake settings
### CMake settings
###
###
## Due to Mac OSX we need to keep compatibility with CMake 2.6
## Due to Mac OSX we need to keep compatibility with CMake 2.6
# see http://www.cmake.org/Wiki/CMake_Policies
# see http://www.cmake.org/Wiki/CMake_Policies
cmake_minimum_required
(
VERSION 2.6
)
cmake_minimum_required
(
VERSION 2.6
)
# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0012
# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0012
if
(
POLICY CMP0012
)
if
(
POLICY CMP0012
)
cmake_policy
(
SET CMP0012 OLD
)
cmake_policy
(
SET CMP0012 OLD
)
endif
()
endif
()
# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0015
# see http://www.cmake.org/cmake/help/cmake-2-8-docs.html#policy:CMP0015
if
(
POLICY CMP0015
)
if
(
POLICY CMP0015
)
cmake_policy
(
SET CMP0015 OLD
)
cmake_policy
(
SET CMP0015 OLD
)
endif
()
endif
()
include
(
CheckCXXCompilerFlag
)
include
(
CheckCXXCompilerFlag
)
###
###
### Project settings
### Project settings
###
###
project
(
YAML_CPP
)
project
(
YAML_CPP
)
set
(
YAML_CPP_VERSION_MAJOR
"0"
)
set
(
YAML_CPP_VERSION_MAJOR
"0"
)
set
(
YAML_CPP_VERSION_MINOR
"2"
)
set
(
YAML_CPP_VERSION_MINOR
"2"
)
set
(
YAML_CPP_VERSION_PATCH
"5"
)
set
(
YAML_CPP_VERSION_PATCH
"5"
)
set
(
YAML_CPP_VERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
.
${
YAML_CPP_VERSION_PATCH
}
"
)
set
(
YAML_CPP_VERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
.
${
YAML_CPP_VERSION_PATCH
}
"
)
enable_testing
()
enable_testing
()
###
###
### Project options
### Project options
###
###
## Project stuff
## Project stuff
option
(
YAML_CPP_BUILD_TOOLS
"Enable testing and parse tools"
ON
)
option
(
YAML_CPP_BUILD_TOOLS
"Enable testing and parse tools"
ON
)
option
(
YAML_CPP_BUILD_CONTRIB
"Enable contrib stuff in library"
ON
)
option
(
YAML_CPP_BUILD_CONTRIB
"Enable contrib stuff in library"
ON
)
## Build options
## Build options
# --> General
# --> General
# see http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:BUILD_SHARED_LIBS
# see http://www.cmake.org/cmake/help/cmake2.6docs.html#variable:BUILD_SHARED_LIBS
# http://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_library
# http://www.cmake.org/cmake/help/cmake2.6docs.html#command:add_library
option
(
BUILD_SHARED_LIBS
"Build Shared Libraries"
OFF
)
option
(
BUILD_SHARED_LIBS
"Build Shared Libraries"
OFF
)
# --> Apple
# --> Apple
option
(
APPLE_UNIVERSAL_BIN
"Apple: Build universal binary"
OFF
)
option
(
APPLE_UNIVERSAL_BIN
"Apple: Build universal binary"
OFF
)
# --> Microsoft Visual C++
# --> Microsoft Visual C++
# see http://msdn.microsoft.com/en-us/library/aa278396(v=VS.60).aspx
# see http://msdn.microsoft.com/en-us/library/aa278396(v=VS.60).aspx
# http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=VS.71).aspx
# http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=VS.71).aspx
option
(
MSVC_SHARED_RT
"MSVC: Build with shared runtime libs (/MD)"
ON
)
option
(
MSVC_SHARED_RT
"MSVC: Build with shared runtime libs (/MD)"
ON
)
option
(
MSVC_STHREADED_RT
"MSVC: Build with single-threaded static runtime libs (/ML until VS .NET 2003)"
OFF
)
option
(
MSVC_STHREADED_RT
"MSVC: Build with single-threaded static runtime libs (/ML until VS .NET 2003)"
OFF
)
###
###
### Sources, headers, directories and libs
### Sources, headers, directories and libs
###
###
file
(
GLOB sources
"src/[a-zA-Z]*.cpp"
)
file
(
GLOB sources
"src/[a-zA-Z]*.cpp"
)
file
(
GLOB public_headers
"include/yaml-cpp/[a-zA-Z]*.h"
)
file
(
GLOB public_headers
"include/yaml-cpp/[a-zA-Z]*.h"
)
file
(
GLOB private_headers
"src/[a-zA-Z]*.h"
)
file
(
GLOB private_headers
"src/[a-zA-Z]*.h"
)
if
(
YAML_CPP_BUILD_CONTRIB
)
if
(
YAML_CPP_BUILD_CONTRIB
)
file
(
GLOB contrib_sources
"src/contrib/[a-zA-Z]*.cpp"
)
file
(
GLOB contrib_sources
"src/contrib/[a-zA-Z]*.cpp"
)
file
(
GLOB contrib_public_headers
"include/yaml-cpp/contrib/[a-zA-Z]*.h"
)
file
(
GLOB contrib_public_headers
"include/yaml-cpp/contrib/[a-zA-Z]*.h"
)
file
(
GLOB contrib_private_headers
"src/contrib/[a-zA-Z]*.h"
)
file
(
GLOB contrib_private_headers
"src/contrib/[a-zA-Z]*.h"
)
else
()
else
()
add_definitions
(
-DYAML_CPP_NO_CONTRIB
)
add_definitions
(
-DYAML_CPP_NO_CONTRIB
)
endif
()
endif
()
if
(
VERBOSE
)
if
(
VERBOSE
)
message
(
STATUS
"sources:
${
sources
}
"
)
message
(
STATUS
"sources:
${
sources
}
"
)
message
(
STATUS
"public_headers:
${
public_headers
}
"
)
message
(
STATUS
"public_headers:
${
public_headers
}
"
)
message
(
STATUS
"private_headers:
${
private_headers
}
"
)
message
(
STATUS
"private_headers:
${
private_headers
}
"
)
message
(
STATUS
"contrib_sources:
${
contrib_sources
}
"
)
message
(
STATUS
"contrib_sources:
${
contrib_sources
}
"
)
message
(
STATUS
"contrib_public_headers:
${
contrib_public_headers
}
"
)
message
(
STATUS
"contrib_public_headers:
${
contrib_public_headers
}
"
)
message
(
STATUS
"contrib_private_headers:
${
contrib_private_headers
}
"
)
message
(
STATUS
"contrib_private_headers:
${
contrib_private_headers
}
"
)
endif
()
endif
()
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
###
###
### General compilation settings
### General compilation settings
###
###
if
(
BUILD_SHARED_LIBS
)
if
(
BUILD_SHARED_LIBS
)
set
(
LABEL_SUFFIX
"shared"
)
set
(
LABEL_SUFFIX
"shared"
)
else
()
else
()
set
(
LABEL_SUFFIX
"static"
)
set
(
LABEL_SUFFIX
"static"
)
endif
()
endif
()
if
(
APPLE
)
if
(
APPLE
)
if
(
APPLE_UNIVERSAL_BIN
)
if
(
APPLE_UNIVERSAL_BIN
)
set
(
CMAKE_OSX_ARCHITECTURES ppc;i386
)
set
(
CMAKE_OSX_ARCHITECTURES ppc;i386
)
endif
()
endif
()
endif
()
endif
()
if
(
IPHONE
)
if
(
IPHONE
)
set
(
CMAKE_OSX_SYSROOT
"iphoneos4.2"
)
set
(
CMAKE_OSX_SYSROOT
"iphoneos4.2"
)
set
(
CMAKE_OSX_ARCHITECTURES
"armv6;armv7"
)
set
(
CMAKE_OSX_ARCHITECTURES
"armv6;armv7"
)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
if
(
BUILD_SHARED_LIBS
)
if
(
BUILD_SHARED_LIBS
)
add_definitions
(
-D
${
PROJECT_NAME
}
_DLL
)
# use or build Windows DLL
add_definitions
(
-D
${
PROJECT_NAME
}
_DLL
)
# use or build Windows DLL
endif
()
endif
()
if
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
if
(
CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT
)
set
(
CMAKE_INSTALL_PREFIX
"C:/"
)
set
(
CMAKE_INSTALL_PREFIX
"C:/"
)
endif
()
endif
()
endif
()
endif
()
# GCC specialities
# GCC specialities
if
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
### General stuff
### General stuff
if
(
WIN32
)
if
(
WIN32
)
set
(
CMAKE_SHARED_LIBRARY_PREFIX
""
)
# DLLs do not have a "lib" prefix
set
(
CMAKE_SHARED_LIBRARY_PREFIX
""
)
# DLLs do not have a "lib" prefix
set
(
CMAKE_IMPORT_LIBRARY_PREFIX
""
)
# same for DLL import libs
set
(
CMAKE_IMPORT_LIBRARY_PREFIX
""
)
# same for DLL import libs
set
(
CMAKE_LINK_DEF_FILE_FLAG
""
)
# CMake workaround (2.8.3)
set
(
CMAKE_LINK_DEF_FILE_FLAG
""
)
# CMake workaround (2.8.3)
endif
()
endif
()
### Project stuff
### Project stuff
if
(
NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE
)
if
(
NOT CMAKE_CONFIGURATION_TYPES AND NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE Release
)
set
(
CMAKE_BUILD_TYPE Release
)
endif
()
endif
()
#
#
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O2"
)
set
(
CMAKE_CXX_FLAGS_RELEASE
"-O2"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-O2 -g"
)
set
(
CMAKE_CXX_FLAGS_RELWITHDEBINFO
"-O2 -g"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"-g"
)
set
(
CMAKE_CXX_FLAGS_MINSIZEREL
"-Os"
)
set
(
CMAKE_CXX_FLAGS_MINSIZEREL
"-Os"
)
#
#
set
(
GCC_EXTRA_OPTIONS
""
)
set
(
GCC_EXTRA_OPTIONS
""
)
#
#
set
(
FLAG_TESTED
"-Wextra"
)
set
(
FLAG_TESTED
"-Wextra"
)
check_cxx_compiler_flag
(
${
FLAG_TESTED
}
FLAG_WEXTRA
)
check_cxx_compiler_flag
(
${
FLAG_TESTED
}
FLAG_WEXTRA
)
if
(
FLAG_WEXTRA
)
if
(
FLAG_WEXTRA
)
set
(
GCC_EXTRA_OPTIONS
"
${
GCC_EXTRA_OPTIONS
}
${
FLAG_TESTED
}
"
)
set
(
GCC_EXTRA_OPTIONS
"
${
GCC_EXTRA_OPTIONS
}
${
FLAG_TESTED
}
"
)
endif
()
endif
()
#
#
set
(
CMAKE_CXX_FLAGS
"-Wall
${
GCC_EXTRA_OPTIONS
}
-pedantic -Wno-long-long
${
CMAKE_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"-Wall
${
GCC_EXTRA_OPTIONS
}
-pedantic -Wno-long-long
${
CMAKE_CXX_FLAGS
}
"
)
#
#
add_custom_target
(
debuggable $
(
MAKE
)
clean
add_custom_target
(
debuggable $
(
MAKE
)
clean
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Debug
${
CMAKE_SOURCE_DIR
}
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Debug
${
CMAKE_SOURCE_DIR
}
COMMENT
"Adjusting settings for debug compilation"
COMMENT
"Adjusting settings for debug compilation"
VERBATIM
)
VERBATIM
)
add_custom_target
(
releasable $
(
MAKE
)
clean
add_custom_target
(
releasable $
(
MAKE
)
clean
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Release
${
CMAKE_SOURCE_DIR
}
COMMAND
${
CMAKE_COMMAND
}
-DCMAKE_BUILD_TYPE=Release
${
CMAKE_SOURCE_DIR
}
COMMENT
"Adjusting settings for release compilation"
COMMENT
"Adjusting settings for release compilation"
VERBATIM
)
VERBATIM
)
endif
()
endif
()
# Microsoft VisualC++ specialities
# Microsoft VisualC++ specialities
if
(
MSVC
)
if
(
MSVC
)
### General stuff
### General stuff
# a) Change MSVC runtime library settings (/MD[d], /MT[d], /ML[d] (single-threaded until VS 2003))
# a) Change MSVC runtime library settings (/MD[d], /MT[d], /ML[d] (single-threaded until VS 2003))
# plus set lib suffix for later use and project label accordingly
# plus set lib suffix for later use and project label accordingly
# see http://msdn.microsoft.com/en-us/library/aa278396(v=VS.60).aspx
# see http://msdn.microsoft.com/en-us/library/aa278396(v=VS.60).aspx
# http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=VS.71).aspx
# http://msdn.microsoft.com/en-us/library/2kzt1wy3(v=VS.71).aspx
set
(
LIB_RT_SUFFIX
"md"
)
# CMake defaults to /MD for MSVC
set
(
LIB_RT_SUFFIX
"md"
)
# CMake defaults to /MD for MSVC
set
(
LIB_RT_OPTION
"/MD"
)
set
(
LIB_RT_OPTION
"/MD"
)
#
#
if
(
NOT MSVC_SHARED_RT
)
# User wants to have static runtime libraries (/MT, /ML)
if
(
NOT MSVC_SHARED_RT
)
# User wants to have static runtime libraries (/MT, /ML)
if
(
MSVC_STHREADED_RT
)
# User wants to have old single-threaded static runtime libraries
if
(
MSVC_STHREADED_RT
)
# User wants to have old single-threaded static runtime libraries
set
(
LIB_RT_SUFFIX
"ml"
)
set
(
LIB_RT_SUFFIX
"ml"
)
set
(
LIB_RT_OPTION
"/ML"
)
set
(
LIB_RT_OPTION
"/ML"
)
if
(
NOT
${
MSVC_VERSION
}
LESS 1400
)
if
(
NOT
${
MSVC_VERSION
}
LESS 1400
)
message
(
FATAL_ERROR
"Single-threaded static runtime libraries (/ML) only available until VS .NET 2003 (7.1)."
)
message
(
FATAL_ERROR
"Single-threaded static runtime libraries (/ML) only available until VS .NET 2003 (7.1)."
)
endif
()
endif
()
else
()
else
()
set
(
LIB_RT_SUFFIX
"mt"
)
set
(
LIB_RT_SUFFIX
"mt"
)
set
(
LIB_RT_OPTION
"/MT"
)
set
(
LIB_RT_OPTION
"/MT"
)
endif
()
endif
()
# correct linker options
# correct linker options
foreach
(
flag_var CMAKE_C_FLAGS CMAKE_CXX_FLAGS
)
foreach
(
flag_var CMAKE_C_FLAGS CMAKE_CXX_FLAGS
)
foreach
(
config_name
""
DEBUG RELEASE MINSIZEREL RELWITHDEBINFO
)
foreach
(
config_name
""
DEBUG RELEASE MINSIZEREL RELWITHDEBINFO
)
set
(
var_name
"
${
flag_var
}
"
)
set
(
var_name
"
${
flag_var
}
"
)
if
(
NOT
"
${
config_name
}
"
STREQUAL
""
)
if
(
NOT
"
${
config_name
}
"
STREQUAL
""
)
set
(
var_name
"
${
var_name
}
_
${
config_name
}
"
)
set
(
var_name
"
${
var_name
}
_
${
config_name
}
"
)
endif
()
endif
()
string
(
REPLACE
"/MD"
"
${
LIB_RT_OPTION
}
"
${
var_name
}
"
${${
var_name
}}
"
)
string
(
REPLACE
"/MD"
"
${
LIB_RT_OPTION
}
"
${
var_name
}
"
${${
var_name
}}
"
)
endforeach
()
endforeach
()
endforeach
()
endforeach
()
endif
()
endif
()
#
#
set
(
LABEL_SUFFIX
"
${
LABEL_SUFFIX
}
${
LIB_RT_OPTION
}
"
)
set
(
LABEL_SUFFIX
"
${
LABEL_SUFFIX
}
${
LIB_RT_OPTION
}
"
)
# b) Change prefix for static libraries
# b) Change prefix for static libraries
set
(
CMAKE_STATIC_LIBRARY_PREFIX
"lib"
)
# to distinguish static libraries from DLL import libs
set
(
CMAKE_STATIC_LIBRARY_PREFIX
"lib"
)
# to distinguish static libraries from DLL import libs
# c) Correct suffixes for static libraries
# c) Correct suffixes for static libraries
if
(
NOT BUILD_SHARED_LIBS
)
if
(
NOT BUILD_SHARED_LIBS
)
### General stuff
### General stuff
set
(
LIB_TARGET_SUFFIX
"
${
LIB_SUFFIX
}${
LIB_RT_SUFFIX
}
"
)
set
(
LIB_TARGET_SUFFIX
"
${
LIB_SUFFIX
}${
LIB_RT_SUFFIX
}
"
)
endif
()
endif
()
### Project stuff
### Project stuff
# /W3 = set warning level; see http://msdn.microsoft.com/en-us/library/thxezb7y.aspx
# /W3 = set warning level; see http://msdn.microsoft.com/en-us/library/thxezb7y.aspx
# /wd4127 = disable warning C4127 "conditional expression is constant"; see http://msdn.microsoft.com/en-us/library/6t66728h.aspx
# /wd4127 = disable warning C4127 "conditional expression is constant"; see http://msdn.microsoft.com/en-us/library/6t66728h.aspx
# /wd4355 = disable warning C4355 "'this' : used in base member initializer list"; http://msdn.microsoft.com/en-us/library/3c594ae3.aspx
# /wd4355 = disable warning C4355 "'this' : used in base member initializer list"; http://msdn.microsoft.com/en-us/library/3c594ae3.aspx
set
(
CMAKE_CXX_FLAGS
"/W3 /wd4127 /wd4355 /D_SCL_SECURE_NO_WARNINGS
${
CMAKE_CXX_FLAGS
}
"
)
set
(
CMAKE_CXX_FLAGS
"/W3 /wd4127 /wd4355 /D_SCL_SECURE_NO_WARNINGS
${
CMAKE_CXX_FLAGS
}
"
)
endif
()
endif
()
###
###
### General install settings
### General install settings
###
###
if
(
WIN32
)
if
(
WIN32
)
set
(
_library_dir bin
)
# .dll are in PATH, like executables
set
(
_library_dir bin
)
# .dll are in PATH, like executables
else
()
else
()
set
(
_library_dir lib
)
set
(
_library_dir lib
)
endif
()
endif
()
set
(
INCLUDE_INSTALL_DIR include/yaml-cpp
)
set
(
INCLUDE_INSTALL_DIR include/yaml-cpp
)
set
(
LIB_INSTALL_DIR
"
${
_library_dir
}${
LIB_SUFFIX
}
"
)
set
(
LIB_INSTALL_DIR
"
${
_library_dir
}${
LIB_SUFFIX
}
"
)
set
(
_INSTALL_DESTINATIONS
set
(
_INSTALL_DESTINATIONS
RUNTIME DESTINATION bin
RUNTIME DESTINATION bin
LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
ARCHIVE DESTINATION
"lib
${
LIB_SUFFIX
}
"
ARCHIVE DESTINATION
"lib
${
LIB_SUFFIX
}
"
)
)
###
###
### Library
### Library
###
###
add_library
(
yaml-cpp
add_library
(
yaml-cpp
${
sources
}
${
sources
}
${
public_headers
}
${
public_headers
}
${
private_headers
}
${
private_headers
}
${
contrib_sources
}
${
contrib_sources
}
${
contrib_public_headers
}
${
contrib_public_headers
}
${
contrib_private_headers
}
${
contrib_private_headers
}
)
)
set_target_properties
(
yaml-cpp PROPERTIES
set_target_properties
(
yaml-cpp PROPERTIES
VERSION
"
${
YAML_CPP_VERSION
}
"
VERSION
"
${
YAML_CPP_VERSION
}
"
SOVERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
"
SOVERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
"
PROJECT_LABEL
"yaml-cpp
${
LABEL_SUFFIX
}
"
PROJECT_LABEL
"yaml-cpp
${
LABEL_SUFFIX
}
"
)
)
if
(
IPHONE
)
if
(
IPHONE
)
set_target_properties
(
yaml-cpp PROPERTIES
set_target_properties
(
yaml-cpp PROPERTIES
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET
"3.0"
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET
"3.0"
)
)
endif
()
endif
()
if
(
MSVC
)
if
(
MSVC
)
if
(
NOT BUILD_SHARED_LIBS
)
if
(
NOT BUILD_SHARED_LIBS
)
# correct library names
# correct library names
set_target_properties
(
yaml-cpp PROPERTIES
set_target_properties
(
yaml-cpp PROPERTIES
DEBUG_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
d"
DEBUG_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
d"
RELEASE_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
"
RELEASE_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
"
MINSIZEREL_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
"
MINSIZEREL_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
"
RELWITHDEBINFO_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
"
RELWITHDEBINFO_POSTFIX
"
${
LIB_TARGET_SUFFIX
}
"
)
)
endif
()
endif
()
endif
()
endif
()
install
(
TARGETS yaml-cpp
${
_INSTALL_DESTINATIONS
}
)
install
(
TARGETS yaml-cpp
${
_INSTALL_DESTINATIONS
}
)
install
(
install
(
FILES
FILES
${
public_headers
}
${
public_headers
}
${
contrib_public_headers
}
${
contrib_public_headers
}
DESTINATION
${
INCLUDE_INSTALL_DIR
}
DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
)
if
(
UNIX
)
if
(
UNIX
)
set
(
PC_FILE
${
CMAKE_BINARY_DIR
}
/yaml-cpp.pc
)
set
(
PC_FILE
${
CMAKE_BINARY_DIR
}
/yaml-cpp.pc
)
configure_file
(
"yaml-cpp.pc.cmake"
${
PC_FILE
}
@ONLY
)
configure_file
(
"yaml-cpp.pc.cmake"
${
PC_FILE
}
@ONLY
)
install
(
FILES
${
PC_FILE
}
DESTINATION
${
LIB_INSTALL_DIR
}
/pkgconfig
)
install
(
FILES
${
PC_FILE
}
DESTINATION
${
LIB_INSTALL_DIR
}
/pkgconfig
)
endif
()
endif
()
###
###
### Extras
### Extras
###
###
if
(
YAML_CPP_BUILD_TOOLS
)
if
(
YAML_CPP_BUILD_TOOLS
)
add_subdirectory
(
test
)
add_subdirectory
(
test
)
add_subdirectory
(
util
)
add_subdirectory
(
util
)
endif
()
endif
()
license.txt
View file @
6e0e9554
Copyright (c) 2008 Jesse Beder.
Copyright (c) 2008 Jesse Beder.
Permission is hereby granted, free of charge, to any person obtaining a copy
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
THE SOFTWARE.
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