ExternalProject_Add(blaze-download
    PREFIX "blaze"
    URL ${CMAKE_SOURCE_DIR}/deps/blaze-latest.tgz
    SOURCE_DIR "${CMAKE_BINARY_DIR}/blaze/install"
    CONFIGURE_COMMAND ""
    BUILD_COMMAND ""
    INSTALL_COMMAND "")

add_custom_target(Blaze)
add_dependencies(Blaze blaze-download)

set(Blaze_DIR "${CMAKE_BINARY_DIR}/blaze/install")
set(Blaze_INCLUDE_DIRS "${Blaze_DIR}/include")
set(Blaze_LIBRARY_DIRS "${Blaze_DIR}/lib")
set(Blaze_LIBRARIES "blaze" "blaze_message")
