Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MLIP
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
Container 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
Tadah
MLIP
Commits
b28e68c9
Commit
b28e68c9
authored
1 year ago
by
mkirsz
Browse files
Options
Downloads
Patches
Plain Diff
Add download to ext proj
parent
eb12ba72
No related branches found
No related tags found
No related merge requests found
Pipeline
#33145
canceled
1 year ago
Stage: build
Stage: build.tests
Stage: run.tests
Stage: trigger
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
CMakeLists.txt
+10
-6
10 additions, 6 deletions
CMakeLists.txt
with
11 additions
and
6 deletions
.gitignore
+
1
−
0
View file @
b28e68c9
*.swp
*.swo
build
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
10
−
6
View file @
b28e68c9
...
...
@@ -14,6 +14,16 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR}
You may need to remove CMakeCache.txt and CMakeFiles dir. "
)
endif
()
include
(
ExternalProject
)
ExternalProject_Add
(
Tadah.MODELS
GIT_REPOSITORY git@git.ecdf.ed.ac.uk:tadah/models.git
GIT_TAG main
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../MODELS
PATCH_COMMAND mkdir -p build
BINARY_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../MODELS/build
INSTALL_COMMAND cmake -E echo
"Skipping install step."
)
if
(
NOT EXISTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/../CORE"
)
message
(
"This module requires CORE module for compilation."
)
message
(
FATAL_ERROR
"CORE module not found."
)
...
...
@@ -24,12 +34,6 @@ if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/../MODELS")
message
(
FATAL_ERROR
"MODELS module not found."
)
endif
()
include
(
ExternalProject
)
ExternalProject_Add
(
Tadah.MODELS
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../MODELS
BINARY_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/../MODELS/build
INSTALL_COMMAND cmake -E echo
"Skipping install step."
)
link_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../MODELS/build
)
link_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../CORE/build
)
...
...
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