Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
exple-cmake-build
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Vladimir Onoprienko
exple-cmake-build
Merge requests
!4
Config deps
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Config deps
config-deps
into
main
Overview
2
Commits
1
Pipelines
0
Changes
1
Merged
Vladimir Onoprienko
requested to merge
config-deps
into
main
3 years ago
Overview
2
Commits
1
Pipelines
0
Changes
1
Expand
Provide some options to configure remote dependencies.
Solves
#6 (closed)
Edited
3 years ago
by
Vladimir Onoprienko
0
0
Merge request reports
Compare
main
version 2
bc2734c3
3 years ago
version 1
bc2734c3
3 years ago
main (base)
and
latest version
latest version
537ff20a
1 commit,
3 years ago
version 2
bc2734c3
1 commit,
3 years ago
version 1
bc2734c3
1 commit,
3 years ago
1 file
+
14
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
CMakeLists.txt
+
14
−
4
Options
@@ -3,13 +3,23 @@ project(exple_cmake_build CXX)
option
(
DOWNLOAD_DEPS
"Enable automatic download of dependencies"
ON
)
set
(
COMMON_LIB_URL
"http://tesla.parallel.ru/vonopr/explelibx-common.git"
CACHE STRING
"Git repository URL of the downloaded 'explelibx-common' dependency; used if DOWNLOAD_DEPS enabled"
)
set
(
COMMON_LIB_TAG
"e45b60782a6414125c7300d9b7a77d34a8404d6e"
CACHE STRING
"Specify the branch name, tag name or commit hash of the downloaded 'explelibx-common' dependency; used if DOWNLOAD_DEPS enabled"
)
set
(
GRID_LIB_URL
"http://tesla.parallel.ru/vonopr/explelibx-mgrid.git"
CACHE STRING
"Git repository URL of the downloaded 'explelibx-mgrid' dependency; used if DOWNLOAD_DEPS enabled"
)
set
(
GRID_LIB_TAG
"c345859b9ebca2227e3b3faea4cc2380fdbb054f"
CACHE STRING
"Specify the branch name, tag name or commit hash of the downloaded 'explelibx-mgrid' dependency; used if DOWNLOAD_DEPS enabled"
)
# download dependency 'explelibx_common' or find it locally
if
(
DOWNLOAD_DEPS
)
include
(
FetchContent
)
FetchContent_Declare
(
explelibx_common
GIT_REPOSITORY
http://tesla.parallel.ru/vonopr/explelibx-common.git
GIT_TAG
e45b60782a6414125c7300d9b7a77d34a8404d6e
)
GIT_REPOSITORY
"
${
COMMON_LIB_URL
}
"
GIT_TAG
"
${
COMMON_LIB_TAG
}
"
)
FetchContent_MakeAvailable
(
explelibx_common
)
set
(
COMMON_DIR
"
${
explelibx_common_SOURCE_DIR
}
"
)
else
()
@@ -29,8 +39,8 @@ if (DOWNLOAD_DEPS)
include
(
FetchContent
)
FetchContent_Declare
(
explelibx_mgrid
GIT_REPOSITORY
http://tesla.parallel.ru/vonopr/explelibx-mgrid.git
GIT_TAG
c345859b9ebca2227e3b3faea4cc2380fdbb054f
)
GIT_REPOSITORY
"
${
GRID_LIB_URL
}
"
GIT_TAG
"
${
GRID_LIB_TAG
}
"
)
FetchContent_MakeAvailable
(
explelibx_mgrid
)
set
(
GRID_DIR
"
${
explelibx_mgrid_SOURCE_DIR
}
"
)
else
()
Loading