project(cereal-download NONE) cmake_minimum_required(VERSION 3.2) include(ExternalProject) ExternalProject_Add( cereal GIT_REPOSITORY https://github.com/USCiLab/cereal.git GIT_TAG v1.2.2 DOWNLOAD_DIR ${CEREAL_DEPS_DIR} TMP_DIR ${CEREAL_DEPS_DIR}/tmp STAMP_DIR ${CEREAL_DEPS_DIR}/stamp SOURCE_DIR ${CEREAL_DEPS_DIR}/src BINARY_DIR ${CEREAL_DEPS_DIR}/build CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND "" TEST_COMMAND "" )