Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download NifTI headers from remote host #2979

Merged
merged 4 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion cmake/Dependencies.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,28 @@ target_include_directories(half INTERFACE "${half_SOURCE_DIR}/include")
# Nifti headers
add_library(nifti INTERFACE)
add_library(nifti::nifti ALIAS nifti)
target_include_directories(nifti INTERFACE "${PROJECT_SOURCE_DIR}/thirdparty/nifti")

if(MRTRIX_LOCAL_DEPENDENCIES)
target_include_directories(nifti INTERFACE "${MRTRIX_DEPENDENCIES_DIR}/nifti")
else()
include(ExternalProject)
ExternalProject_Add(
nifti1
PREFIX nifti
URL "https://nifti.nimh.nih.gov/pub/dist/src/nifti2/nifti1.h"
CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND ""
DOWNLOAD_NO_EXTRACT ON
DOWNLOAD_NO_PROGRESS ON
)
ExternalProject_Add(
nifti2
PREFIX nifti
URL "https://nifti.nimh.nih.gov/pub/dist/src/nifti2/nifti2.h"
CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND ""
DOWNLOAD_NO_EXTRACT ON
DOWNLOAD_NO_PROGRESS ON
)
target_include_directories(nifti INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/nifti/src/")
target_include_directories(nifti INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/nifti/src/")
endif()

Loading
Loading