# Distributed under the OSI-approved MIT License.  See accompanying
# file LICENSE or https://github.com/Crascit/DownloadProject for details.

cmake_minimum_required(VERSION 2.8.2)

project(${DL_ARGS_PROJ}-download NONE)

include(ExternalProject)
if(${DL_ARGS_BUILD_PROJECT})
    ExternalProject_Add(${DL_ARGS_PROJ}-download
                        ${DL_ARGS_UNPARSED_ARGUMENTS}
                        SOURCE_DIR          "${DL_ARGS_SOURCE_DIR}"
                        BUILD_IN_SOURCE     TRUE
                        TEST_COMMAND        ""
    )
else()
    ExternalProject_Add(${DL_ARGS_PROJ}-download
                        ${DL_ARGS_UNPARSED_ARGUMENTS}
                        SOURCE_DIR          "${DL_ARGS_SOURCE_DIR}"
                        BUILD_IN_SOURCE     TRUE
                        TEST_COMMAND        ""
                        UPDATE_COMMAND      ""
                        CONFIGURE_COMMAND   ""
                        BUILD_COMMAND       ""
                        INSTALL_COMMAND     ""
    )
endif()
