# vim: ft=cmake

# This is a separate template for CMakeLists.txt to build gtest as a separate project

cmake_minimum_required(VERSION 2.8.2)

project(csr5-download NONE)

include(ExternalProject)
ExternalProject_Add(csr5
  GIT_REPOSITORY    https://github.com/weifengliu-ssslab/Benchmark_SpMV_using_CSR5.git
  #GIT_TAG           master
  # build from a stable branch instead of master (which gets broken pretty often)
  #GIT_TAG           v1.10.x
  SOURCE_DIR        "${CMAKE_BINARY_DIR}/src/Benchmarks/SpMV/csr5-src"
  BINARY_DIR        "${CMAKE_BINARY_DIR}/src/Benchmarks/SpMV/csr5-build"
  CONFIGURE_COMMAND ""
  BUILD_COMMAND     ""
  INSTALL_COMMAND   ""
  TEST_COMMAND      ""
  # Disable update of the external project in an offline build
  # reference: https://stackoverflow.com/a/40423683
  UPDATE_DISCONNECTED ${OFFLINE_BUILD}
)
