Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
464bb701
Commit
464bb701
authored
Jul 10, 2009
by
Jesse Beder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Applied patch to build and version a shared library
parent
781fb4d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
CMakeLists.txt
+10
-1
No files found.
CMakeLists.txt
View file @
464bb701
...
...
@@ -4,6 +4,11 @@ project (YAML_CPP)
SET
(
CMAKE_CXX_FLAGS
"-O2 -Wall -pedantic -Wextra"
)
set
(
YAML_CPP_VERSION_MAJOR
"0"
)
set
(
YAML_CPP_VERSION_MINOR
"1"
)
set
(
YAML_CPP_VERSION_PATCH
"0"
)
set
(
YAML_CPP_VERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
.
${
YAML_CPP_VERSION_PATCH
}
"
)
enable_testing
()
if
(
WIN32
)
...
...
@@ -25,11 +30,15 @@ file(GLOB private_headers src/*.h)
file
(
GLOB sources src/*.cpp
)
include_directories
(
${
YAML_CPP_SOURCE_DIR
}
/include
)
add_library
(
yaml-cpp
add_library
(
yaml-cpp
SHARED
${
public_headers
}
${
private_headers
}
${
sources
}
)
set_target_properties
(
yaml-cpp PROPERTIES
VERSION
"
${
YAML_CPP_VERSION
}
"
SOVERSION
"
${
YAML_CPP_VERSION_MAJOR
}
.
${
YAML_CPP_VERSION_MINOR
}
"
)
install
(
TARGETS yaml-cpp
${
_INSTALL_DESTINATIONS
}
)
install
(
...
...
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