diff options
author | Matthew Wampler-Doty <matthew.wampler.doty@gmail.com> | 2015-03-01 03:58:37 +0800 |
---|---|---|
committer | Matthew Wampler-Doty <matthew.wampler.doty@gmail.com> | 2015-03-03 11:29:34 +0800 |
commit | de9f79133faa1ff5dcd16fb4fd13d06b7799ded9 (patch) | |
tree | fcc9001d6b681ccdd1b3bbe516e3611e808341d7 /Godeps/_workspace/src/github.com/ethereum/ethash/libethash/CMakeLists.txt | |
parent | 080823bdeebbab2bcffdaefad703896700ed2c30 (diff) | |
download | go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.gz go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.bz2 go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.lz go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.xz go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.tar.zst go-tangerine-de9f79133faa1ff5dcd16fb4fd13d06b7799ded9.zip |
Introducing ethash
Diffstat (limited to 'Godeps/_workspace/src/github.com/ethereum/ethash/libethash/CMakeLists.txt')
-rw-r--r-- | Godeps/_workspace/src/github.com/ethereum/ethash/libethash/CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Godeps/_workspace/src/github.com/ethereum/ethash/libethash/CMakeLists.txt b/Godeps/_workspace/src/github.com/ethereum/ethash/libethash/CMakeLists.txt new file mode 100644 index 000000000..bef63ef0a --- /dev/null +++ b/Godeps/_workspace/src/github.com/ethereum/ethash/libethash/CMakeLists.txt @@ -0,0 +1,33 @@ +set(LIBRARY ethash) +set(CMAKE_BUILD_TYPE Release) + +if (NOT MSVC) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") +endif() + +set(FILES util.c + util.h + internal.c + ethash.h + endian.h + compiler.h + fnv.h + data_sizes.h) + +if (NOT CRYPTOPP_FOUND) + find_package(CryptoPP 5.6.2) +endif() + +if (CRYPTOPP_FOUND) + add_definitions(-DWITH_CRYPTOPP) + include_directories( ${CRYPTOPP_INCLUDE_DIRS} ) + list(APPEND FILES sha3_cryptopp.cpp sha3_cryptopp.h) +else() + list(APPEND FILES sha3.c sha3.h) +endif() + +add_library(${LIBRARY} ${FILES}) + +if (CRYPTOPP_FOUND) + TARGET_LINK_LIBRARIES(${LIBRARY} ${CRYPTOPP_LIBRARIES}) +endif()
\ No newline at end of file |