Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-meshdist
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
extensions
dune-meshdist
Commits
ce58341e
Commit
ce58341e
authored
3 months ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Add patch to allow custom package downloads
parent
cde7e4e5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#75598
failed
3 months ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libs/CMakeLists.txt
+20
-16
20 additions, 16 deletions
libs/CMakeLists.txt
with
20 additions
and
16 deletions
libs/CMakeLists.txt
+
20
−
16
View file @
ce58341e
include
(
FetchContent
)
if
(
ENABLE_NANOFLANN
)
set
(
NANOFLANN_BUILD_EXAMPLES OFF CACHE BOOL
"Do not build examples for nanoflann"
FORCE
)
set
(
NANOFLANN_BUILD_TESTS OFF CACHE BOOL
"Do not build tests for nanoflann"
FORCE
)
FetchContent_Declare
(
nanoflann
# name of the content
GIT_REPOSITORY https://github.com/jlblancoc/nanoflann.git
# the repository
GIT_TAG v1.6.2
# the tag
)
FetchContent_GetProperties
(
nanoflann
)
if
(
NOT nanoflann_POPULATED
)
FetchContent_Populate
(
nanoflann
)
if
(
NOT nanoflann_SOURCE_DIR
)
set
(
NANOFLANN_BUILD_EXAMPLES OFF CACHE BOOL
"Do not build examples for nanoflann"
FORCE
)
set
(
NANOFLANN_BUILD_TESTS OFF CACHE BOOL
"Do not build tests for nanoflann"
FORCE
)
FetchContent_Declare
(
nanoflann
# name of the content
GIT_REPOSITORY https://github.com/jlblancoc/nanoflann.git
# the repository
GIT_TAG v1.6.2
# the tag
)
FetchContent_GetProperties
(
nanoflann
)
if
(
NOT nanoflann_POPULATED
)
FetchContent_Populate
(
nanoflann
)
endif
()
endif
()
file
(
GLOB NANOFLANN_HEADERS CONFIGURE_DEPENDS
"
${
nanoflann_SOURCE_DIR
}
/include/*.hpp"
)
...
...
@@ -25,13 +27,15 @@ if(ENABLE_NANOFLANN)
endif
()
if
(
ENABLE_ALGLIB
)
FetchContent_Declare
(
alglib
URL https://www.alglib.net/translator/re/alglib-4.03.0.cpp.gpl.tgz
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
PATCH_COMMAND
${
CMAKE_COMMAND
}
-E create_symlink <SOURCE_DIR>/src <SOURCE_DIR>/alglib
)
FetchContent_MakeAvailable
(
alglib
)
if
(
NOT alglib_SOURCE_DIR
)
FetchContent_Declare
(
alglib
URL https://www.alglib.net/translator/re/alglib-4.03.0.cpp.gpl.tgz
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
PATCH_COMMAND
${
CMAKE_COMMAND
}
-E create_symlink <SOURCE_DIR>/src <SOURCE_DIR>/alglib
)
FetchContent_MakeAvailable
(
alglib
)
endif
()
file
(
GLOB ALGLIB_HEADERS CONFIGURE_DEPENDS
"
${
alglib_SOURCE_DIR
}
/src/*.hpp"
)
file
(
GLOB ALGLIB_SOURCES CONFIGURE_DEPENDS
"
${
alglib_SOURCE_DIR
}
/src/*.cpp"
)
...
...
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