Skip to content
Snippets Groups Projects
Commit b28e68c9 authored by mkirsz's avatar mkirsz
Browse files

Add download to ext proj

parent eb12ba72
No related branches found
No related tags found
No related merge requests found
Pipeline #33145 canceled
*.swp
*.swo
build
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment