Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VTK
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ben Boeckel
VTK
Commits
339c20c2
Commit
339c20c2
authored
6 years ago
by
Ben Boeckel
Browse files
Options
Downloads
Patches
Plain Diff
Finddouble-conversion: add imported targets
parent
008bbeb4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/Finddouble-conversion.cmake
+19
-16
19 additions, 16 deletions
CMake/Finddouble-conversion.cmake
with
19 additions
and
16 deletions
CMake/Finddouble-conversion.cmake
+
19
−
16
View file @
339c20c2
find_path
(
DOUBLE-CONVERSION
_INCLUDE_DIR
find_path
(
double-conversion
_INCLUDE_DIR
NAMES
double-conversion.h
PATH_SUFFIXES
double-conversion
)
double-conversion
DOC
"double-conversion include directory"
)
mark_as_advanced
(
double-conversion_INCLUDE_DIR
)
find_library
(
DOUBLE-CONVERSION
_LIBRARY
find_library
(
double-conversion
_LIBRARY
NAMES
double-conversion
)
set
(
DOUBLE-CONVERSION_LIBRARIES
"
${
DOUBLE-CONVERSION_LIBRARY
}
"
)
add_library
(
double-conversion::double-conversion UNKNOWN IMPORTED
)
set_target_properties
(
double-conversion::double-conversion
PROPERTIES
IMPORTED_LOCATION
${
DOUBLE-CONVERSION_LIBRARY
}
INTERFACE_INCLUDE_DIRECTORIES
${
DOUBLE-CONVERSION_INCLUDE_DIR
}
)
DOC
"double-conversion library"
)
mark_as_advanced
(
double-conversion_LIBRARY
)
include
(
FindPackageHandleStandardArgs
)
find_package_handle_standard_args
(
double-conversion
DOUBLE-CONVERSION_LIBRARIES
DOUBLE-CONVERSION_INCLUDE_DIR
)
REQUIRED_VARS double-conversion_LIBRARY double-conversion_INCLUDE_DIR
)
if
(
double-conversion_FOUND
)
set
(
double-conversion_INCLUDE_DIRS
"
${
double-conversion_INCLUDE_DIR
}
"
)
set
(
double-conversion_LIBRARIES
"
${
double-conversion_LIBRARY
}
"
)
mark_as_advanced
(
DOUBLE-CONVERSION_LIBRARY DOUBLE-CONVERSION_INCLUDE_DIR
)
if
(
NOT TARGET double-conversion::double-conversion
)
add_library
(
double-conversion::double-conversion UNKNOWN IMPORTED
)
set_target_properties
(
double-conversion::double-conversion PROPERTIES
IMPORTED_LOCATION
"
${
double-conversion_LIBRARY
}
"
INTERFACE_INCLUDE_DIRECTORIES
"
${
double-conversion_INCLUDE_DIR
}
"
)
endif
()
endif
()
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