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
8e02bf4f
Commit
8e02bf4f
authored
7 years ago
by
Isaac Hier
Browse files
Options
Downloads
Patches
Plain Diff
Improve CMake changes.
parent
a711666d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+18
-17
18 additions, 17 deletions
CMakeLists.txt
cmake/double-conversionConfig.cmake
+0
-1
0 additions, 1 deletion
cmake/double-conversionConfig.cmake
cmake/double-conversionConfig.cmake.in
+4
-0
4 additions, 0 deletions
cmake/double-conversionConfig.cmake.in
with
22 additions
and
18 deletions
CMakeLists.txt
+
18
−
17
View file @
8e02bf4f
cmake_minimum_required
(
VERSION 3.0
)
project
(
double-conversion
)
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
set
(
CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON
)
project
(
double-conversion VERSION 2.0.1
)
set
(
headers
double-conversion/bignum.h
...
...
@@ -25,10 +22,12 @@ add_library(double-conversion
double-conversion/fixed-dtoa.cc
double-conversion/strtod.cc
${
headers
}
)
target_include_directories
(
double-conversion PUBLIC
$<BUILD_INTERFACE:
${
CMAKE_CURRENT_SOURCE_DIR
}
/include>
$<INSTALL_INTERFACE:include>
)
# pick a version #
set
(
double-conversion_VERSION 2.0.1
)
set_property
(
TARGET double-conversion PROPERTY VERSION
${
double-conversion_VERSION
}
)
set
(
double-conversion_SOVERSION_MAJOR 1
)
set
(
double-conversion_SOVERSION_MINOR 0
)
set
(
double-conversion_SOVERSION_PATCH 0
)
...
...
@@ -43,32 +42,34 @@ if(BUILD_TESTING)
add_subdirectory
(
test
)
endif
()
include
(
GNUInstallDirs
)
install
(
TARGETS double-conversion EXPORT double-conversionTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
)
LIBRARY DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
ARCHIVE DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
RUNTIME DESTINATION
${
CMAKE_INSTALL_BINDIR
}
)
install
(
FILES
${
headers
}
DESTINATION
${
CMAKE_INSTALL_INCLUDEDIR
}
/double-conversion
)
include
(
CMakePackageConfigHelpers
)
configure_package_config_file
(
cmake/double-conversionConfig.cmake.in
"
${
CMAKE_CURRENT_BINARY_DIR
}
/double-conversion/double-conversionConfig.cmake"
INSTALL_DESTINATION
"
${
LIB_INSTALL_DIR
}
/double-conversion/cmake"
)
write_basic_package_version_file
(
"
${
PROJECT_BINARY_DIR
}
/double-conversion/double-conversionConfigVersion.cmake"
VERSION
${
double-conversion
_VERSION
}
COMPATIBILITY
AnyNewe
rVersion
)
VERSION
${
PROJECT
_VERSION
}
COMPATIBILITY
SameMajo
rVersion
)
export
(
EXPORT double-conversionTargets
FILE
"
${
CMAKE_CURRENT_BINARY_DIR
}
/double-conversion/double-conversionTargets.cmake"
NAMESPACE double-conversion::
)
configure_file
(
cmake/double-conversionConfig.cmake
"
${
CMAKE_CURRENT_BINARY_DIR
}
/double-conversion/double-conversionConfig.cmake"
COPYONLY
)
set
(
ConfigPackageLocation lib/cmake/double-conversion
)
install
(
EXPORT double-conversionTargets
FILE double-conversionTargets.cmake
NAMESPACE double-conversion::
DESTINATION
${
ConfigPackageLocation
}
)
install
(
FILES
cmake
/double-conversionConfig.cmake
install
(
FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/double-conversion
/double-conversionConfig.cmake
"
"
${
CMAKE_CURRENT_BINARY_DIR
}
/double-conversion/double-conversionConfigVersion.cmake"
DESTINATION
${
ConfigPackageLocation
}
COMPONENT Devel
)
This diff is collapsed.
Click to expand it.
cmake/double-conversionConfig.cmake
deleted
100644 → 0
+
0
−
1
View file @
a711666d
include
(
"
${
CMAKE_CURRENT_LIST_DIR
}
/double-conversionTargets.cmake"
)
This diff is collapsed.
Click to expand it.
cmake/double-conversionConfig.cmake.in
0 → 100644
+
4
−
0
View file @
8e02bf4f
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")
check_required_components("@PROJECT_NAME@")
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