Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fuchsia.googlesource.com-third_party-google-double-conversion
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
fuchsia.googlesource.com-third_party-google-double-conversion
Commits
c7734598
Commit
c7734598
authored
11 years ago
by
Florian Loitsch
Browse files
Options
Downloads
Patches
Plain Diff
Support shared libraries with Cmake. Improve README.
parent
2fb03de5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CMakeLists.txt
+6
-2
6 additions, 2 deletions
CMakeLists.txt
Changelog
+5
-0
5 additions, 0 deletions
Changelog
README
+43
-0
43 additions, 0 deletions
README
src/CMakeLists.txt
+6
-0
6 additions, 0 deletions
src/CMakeLists.txt
with
60 additions
and
2 deletions
CMakeLists.txt
+
6
−
2
View file @
c7734598
...
...
@@ -2,8 +2,12 @@ cmake_minimum_required(VERSION 2.8)
project
(
double-conversion
)
# pick a version #
set
(
double-conversion_VERSION
1.1.1
)
set
(
double-conversion_VERSION 2.0.1
)
set
(
double-conversion_SOVERSION_MAJOR 1
)
set
(
double-conversion_SOVERSION_MINOR 0
)
set
(
double-conversion_SOVERSION_PATCH 0
)
set
(
double-conversion_SOVERSION
${
double-conversion_SOVERSION_MAJOR
}
.
${
double-conversion_SOVERSION_MINOR
}
.
${
double-conversion_SOVERSION_PATCH
}
)
# set paths for install -- empty initially
# Offer the user the choice of overriding the installation directories
...
...
This diff is collapsed.
Click to expand it.
Changelog
+
5
−
0
View file @
c7734598
2014-03-08:
Update version number for cmake.
Support shared libraries with cmake.
Add build instructions to the README.
2014-01-12:
Tagged v2.0.1.
Fix compilation for ARMv8 64bit (used wrong define).
...
...
This diff is collapsed.
Click to expand it.
README
+
43
−
0
View file @
c7734598
...
...
@@ -9,3 +9,46 @@ it can be used more easily in other projects.
There is extensive documentation in src/double-conversion.h. Other examples can
be found in test/cctest/test-conversions.cc.
Building
========
This library can be built with scons [0] or cmake [1].
The checked-in Makefile simply forwards to scons, and provides a
shortcut to run all tests:
make
make test
Scons
-----
The easiest way to install this library is to use `scons`. It builds
the static and shared library, and is set up to install those at the
correct locations:
scons install
Use the `DESTDIR` option to change the target directory:
scons DESTDIR=alternative_directory install
Cmake
-----
To use cmake run `cmake .` in the root directory. This overwrites the
existing Makefile.
Use `-DBUILD_SHARED_LIBS=ON` to enable the compilation of shared libraries.
Note that this disables static libraries. There is currently no way to
build both libraries at the same time with cmake.
Use `-DBUILD_TESTING=ON` to build the test executable.
cmake . -DBUILD_TESTING=ON
make
test/cctest/cctest --list | tr -d '<' | xargs test/cctest/cctest
[0]: http://www.scons.org
[1]: http://www.cmake.org
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
6
−
0
View file @
c7734598
...
...
@@ -29,6 +29,12 @@ ${headers}
set_target_properties
(
double-conversion
PROPERTIES PUBLIC_HEADER
"
${
headers
}
"
)
if
(
BUILD_SHARED_LIBS
)
set_target_properties
(
double-conversion
PROPERTIES VERSION
${
double-conversion_SOVERSION
}
SOVERSION
${
double-conversion_SOVERSION_MAJOR
}
)
endif
()
#
# install command to set up library install
# given the above PUBLIC_HEADER property set, this
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment