diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-05-21 15:34:07 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-05-21 15:34:07 +0800 |
commit | fdf75394809f7f20355236b38559198785aece9e (patch) | |
tree | 9dffb9183ea26112d80d4349558ac30f524ea85f | |
parent | 9b8261afa3e64a1d2317ff5ecd1dea57c34f449e (diff) | |
download | tangerine-mcl-fdf75394809f7f20355236b38559198785aece9e.tar.gz tangerine-mcl-fdf75394809f7f20355236b38559198785aece9e.tar.zst tangerine-mcl-fdf75394809f7f20355236b38559198785aece9e.zip |
cmake downloads xbyak, cybozulib
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 7842a58..08700c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,10 +36,23 @@ elseif(UNIX) set(CPU x86-64) endif() +set(XBYAK_TAG v5.43) +foreach(file IN ITEMS xbyak.h xbyak_util.h xbyak_mnemonic.h) + file(DOWNLOAD https://raw.githubusercontent.com/herumi/xbyak/${XBYAK_TAG}/xbyak/${file} ${mcl_SOURCE_DIR}/include/xbyak/${file}) + message("download xbyak/" ${file}) +endforeach() + +set(CYBOZULIB_TAG release20170521) +set(CYBOZULIB_FILES atoi.hpp bit_operation.hpp endian.hpp hash.hpp itoa.hpp random_generator.hpp unordered_map.hpp benchmark.hpp crypto.hpp exception.hpp inttype.hpp option.hpp test.hpp xorshift.hpp) +foreach(file IN ITEMS ${CYBOZULIB_FILES}) + file(DOWNLOAD https://raw.githubusercontent.com/herumi/cybozulib/${CYBOZULIB_TAG}/include/cybozu/${file} ${mcl_SOURCE_DIR}/include/cybozu/${file}) + message("download cybozu/" ${file}) +endforeach() + include_directories( ${mcl_SOURCE_DIR}/include - ${mcl_SOURCE_DIR}/../cybozulib/include - ${mcl_SOURCE_DIR}/../xbyak +# ${mcl_SOURCE_DIR}/../cybozulib/include +# ${mcl_SOURCE_DIR}/../xbyak ) add_library(mcl STATIC ${SRCS}) |