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
464bb701
"docker/git@developer.sourcefind.cn:OpenDAS/mmdetection3d.git" did not exist on "fe25f7a51d36e3702f961e198894580d83c4387b"
Commit
464bb701
authored
Jul 10, 2009
by
Jesse Beder
Browse files
Applied patch to build and version a shared library
parent
781fb4d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
CMakeLists.txt
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