Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

  • 3809bec
  • /
  • downloadItk.cmake
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
content badge Iframe embedding
swh:1:cnt:8564c96d49f3b8129ceee8b4cda719e49ae2a27d
directory badge Iframe embedding
swh:1:dir:3809bec77ce0c3ae2b358302f9c19591d434177b
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
downloadItk.cmake
if(DOWNLOAD_DEPENDENCIES)

    if (WIN32)
        if(NOT DEFINED CMAKE_GENERATOR_TOOLSET)
            set(ITK_TOOLSET v140)
        elseif(NOT(CMAKE_GENERATOR_TOOLSET MATCHES v90 OR CMAKE_GENERATOR_TOOLSET MATCHES v140))
            set(ITK_TOOLSET v140)
        else()
            set(ITK_TOOLSET ${CMAKE_GENERATOR_TOOLSET})
        endif()
        if(CMAKE_SIZEOF_VOID_P EQUAL 8)
            # windows 64 bit
            set(ITK_ZIP_NAME itk_v4.12.0_windows_x64_${ITK_TOOLSET}.zip)
        elseif(CMAKE_SIZEOF_VOID_P EQUAL 4)
            # windows 32 bit
            set(ITK_ZIP_NAME itk_v4.12.0_windows_Win32_${ITK_TOOLSET}.zip)
        endif()
    endif ()
    if (UNIX AND NOT APPLE)
        set(ITK_ZIP_NAME itk_v4.12.0_linux_g++_CXX98.zip)
    endif ()
    if (APPLE)
        set(ITK_ZIP_NAME itk_v4.12.0_osx_g++_CXX98.zip)
    endif ()

    set(DOWNLOAD_URL https://github.com/MRKonrad/build-itk/releases/download/itk_v4.12.0/${ITK_ZIP_NAME})
    MESSAGE(STATUS "Downloading ${DOWNLOAD_URL}")

    if (NOT EXISTS ${PROJECT_SOURCE_DIR}/thirdParty/itk)

        # DOWNLOAD
        file(DOWNLOAD
                ${DOWNLOAD_URL}
                "${PROJECT_SOURCE_DIR}/thirdParty/itk/itk.zip"
                STATUS status LOG log)
        list(GET status 0 status_code)
        list(GET status 1 status_string)

        # UNZIP
        execute_process( COMMAND cmake -E tar xzf "${PROJECT_SOURCE_DIR}/thirdParty/itk/itk.zip"
                WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/thirdParty/itk)

        # DELETE ZIP
        file(REMOVE "${PROJECT_SOURCE_DIR}/thirdParty/itk/itk.zip")

    endif()

    set(ITK_DIR_HINTS "${PROJECT_SOURCE_DIR}/thirdParty/itk" CACHE PATH "ITK_DIR_HINTS")


endif(DOWNLOAD_DEPENDENCIES)

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top