17 lines
578 B
CMake
17 lines
578 B
CMake
cmake_minimum_required(VERSION 2.8.2)
|
|
|
|
project(mkldnn-download NONE)
|
|
|
|
include(ExternalProject)
|
|
ExternalProject_Add(mkldnn
|
|
GIT_REPOSITORY https://github.com/intel/mkl-dnn.git
|
|
GIT_TAG v0.18.1
|
|
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/mkldnn-src"
|
|
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/mkldnn-build"
|
|
CONFIGURE_COMMAND "${CMAKE_CURRENT_BINARY_DIR}/mkldnn-src/scripts/prepare_mkl.sh"
|
|
CMAKE_ARGS -DMKLDNN_USE_MKL=ML -G \"Unix Makefiles\" -DMKLDNN_LIBRARY_TYPE=STATIC
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
TEST_COMMAND ""
|
|
)
|