Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dmitri Naumov
ogs
Commits
a608afe7
Verified
Commit
a608afe7
authored
4 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[CPM] Moved into own file.
parent
5f74f581
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
scripts/cmake/Dependencies.cmake
+84
-0
84 additions, 0 deletions
scripts/cmake/Dependencies.cmake
scripts/cmake/Find.cmake
+0
-85
0 additions, 85 deletions
scripts/cmake/Find.cmake
with
85 additions
and
85 deletions
CMakeLists.txt
+
1
−
0
View file @
a608afe7
...
...
@@ -85,6 +85,7 @@ include(Functions)
include
(
ConanSetup
)
include
(
CompilerSetup
)
include
(
Find
)
include
(
Dependencies
)
include
(
CCacheSetup
)
include
(
CLCacheSetup
)
include
(
DocumentationSetup
)
...
...
This diff is collapsed.
Click to expand it.
scripts/cmake/Dependencies.cmake
0 → 100644
+
84
−
0
View file @
a608afe7
if
(
BUILD_TESTING
)
CPMAddPackage
(
NAME googletest
GITHUB_REPOSITORY google/googletest
GIT_TAG 389cb68b87193358358ae87cc56d257fd0d80189
OPTIONS
"INSTALL_GTEST OFF"
"gtest_force_shared_crt ON"
)
CPMAddPackage
(
NAME autocheck
GITHUB_REPOSITORY ufz/autocheck
GIT_TAG e388ecbb31c49fc2724c8d0436da313b6edca7fd
DOWNLOAD_ONLY YES
)
if
(
autocheck_ADDED
)
add_library
(
autocheck INTERFACE IMPORTED
)
target_include_directories
(
autocheck INTERFACE
${
autocheck_SOURCE_DIR
}
/include
)
endif
()
CPMAddPackage
(
NAME vtkdiff
GITHUB_REPOSITORY ufz/vtkdiff
GIT_TAG 49403cee266bb8e80405a02d677dbb5f71afc61a
OPTIONS
"VTK_LIBRARIES vtkIOXML"
)
if
(
vtkdiff_ADDED
)
install
(
PROGRAMS $<TARGET_FILE:vtkdiff> DESTINATION bin
)
endif
()
endif
()
CPMAddPackage
(
NAME exprtk
GITHUB_REPOSITORY ArashPartow/exprtk
GIT_TAG c7c219480d9678eec7383a4a99030683c4a84d91
DOWNLOAD_ONLY YES
)
if
(
exprtk_ADDED
)
add_library
(
exprtk INTERFACE IMPORTED
)
target_include_directories
(
exprtk INTERFACE
${
exprtk_SOURCE_DIR
}
)
endif
()
CPMAddPackage
(
NAME spdlog
GITHUB_REPOSITORY gabime/spdlog
VERSION 1.8.2
)
CPMAddPackage
(
NAME tclap
GITHUB_REPOSITORY ufz/tclap
GIT_TAG 03abc3a3327214137c6ffd5b9a6efe23f0927cc2
DOWNLOAD_ONLY YES
)
if
(
tclap_ADDED
)
add_library
(
tclap INTERFACE IMPORTED
)
target_include_directories
(
tclap INTERFACE
${
tclap_SOURCE_DIR
}
/include
)
endif
()
CPMAddPackage
(
NAME tetgen
GITHUB_REPOSITORY ufz/tetgen
GIT_TAG 603ba181ebfaed38eec88532720e282606009b73
)
if
(
tetgen_ADDED
)
install
(
PROGRAMS $<TARGET_FILE:tetgen> DESTINATION bin
)
endif
()
if
(
OGS_USE_PYTHON
)
CPMAddPackage
(
NAME pybind11
GITHUB_REPOSITORY pybind/pybind11
GIT_TAG f1abf5d9159b805674197f6bc443592e631c9130
# pybind11 uses old CMake find functionality, pass variables to use
# the same Python installation.
OPTIONS
"PYTHON_INCLUDE_DIR
${
Python3_INCLUDE_DIRS
}
"
"PYTHON_LIBRARIES
${
Python3_LIBRARIES
}
"
"PYTHON_EXECUTABLE
${
Python3_EXECUTABLE
}
"
"PYBIND11_PYTHON_VERSION
${
Python3_VERSION
}
"
)
endif
()
This diff is collapsed.
Click to expand it.
scripts/cmake/Find.cmake
+
0
−
85
View file @
a608afe7
if
(
BUILD_TESTING
)
CPMAddPackage
(
NAME googletest
GITHUB_REPOSITORY google/googletest
GIT_TAG 389cb68b87193358358ae87cc56d257fd0d80189
OPTIONS
"INSTALL_GTEST OFF"
"gtest_force_shared_crt ON"
)
CPMAddPackage
(
NAME autocheck
GITHUB_REPOSITORY ufz/autocheck
GIT_TAG e388ecbb31c49fc2724c8d0436da313b6edca7fd
DOWNLOAD_ONLY YES
)
if
(
autocheck_ADDED
)
add_library
(
autocheck INTERFACE IMPORTED
)
target_include_directories
(
autocheck INTERFACE
${
autocheck_SOURCE_DIR
}
/include
)
endif
()
CPMAddPackage
(
NAME vtkdiff
GITHUB_REPOSITORY ufz/vtkdiff
GIT_TAG 49403cee266bb8e80405a02d677dbb5f71afc61a
OPTIONS
"VTK_LIBRARIES vtkIOXML"
)
if
(
vtkdiff_ADDED
)
install
(
PROGRAMS $<TARGET_FILE:vtkdiff> DESTINATION bin
)
endif
()
endif
()
CPMAddPackage
(
NAME exprtk
GITHUB_REPOSITORY ArashPartow/exprtk
GIT_TAG c7c219480d9678eec7383a4a99030683c4a84d91
DOWNLOAD_ONLY YES
)
if
(
exprtk_ADDED
)
add_library
(
exprtk INTERFACE IMPORTED
)
target_include_directories
(
exprtk INTERFACE
${
exprtk_SOURCE_DIR
}
)
endif
()
CPMAddPackage
(
NAME spdlog
GITHUB_REPOSITORY gabime/spdlog
VERSION 1.8.2
)
CPMAddPackage
(
NAME tclap
GITHUB_REPOSITORY ufz/tclap
GIT_TAG 03abc3a3327214137c6ffd5b9a6efe23f0927cc2
DOWNLOAD_ONLY YES
)
if
(
tclap_ADDED
)
add_library
(
tclap INTERFACE IMPORTED
)
target_include_directories
(
tclap INTERFACE
${
tclap_SOURCE_DIR
}
/include
)
endif
()
CPMAddPackage
(
NAME tetgen
GITHUB_REPOSITORY ufz/tetgen
GIT_TAG 603ba181ebfaed38eec88532720e282606009b73
)
if
(
tetgen_ADDED
)
install
(
PROGRAMS $<TARGET_FILE:tetgen> DESTINATION bin
)
endif
()
if
(
OGS_USE_PYTHON
)
CPMAddPackage
(
NAME pybind11
GITHUB_REPOSITORY pybind/pybind11
GIT_TAG f1abf5d9159b805674197f6bc443592e631c9130
# pybind11 uses old CMake find functionality, pass variables to use
# the same Python installation.
OPTIONS
"PYTHON_INCLUDE_DIR
${
Python3_INCLUDE_DIRS
}
"
"PYTHON_LIBRARIES
${
Python3_LIBRARIES
}
"
"PYTHON_EXECUTABLE
${
Python3_EXECUTABLE
}
"
"PYBIND11_PYTHON_VERSION
${
Python3_VERSION
}
"
)
endif
()
######################
### Find tools ###
######################
...
...
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