From 4b850df4c950d929a603234d57aab17b40078f7a Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Thu, 12 Mar 2015 23:21:23 +0100 Subject: [PATCH] Preliminary ethash-cl support. --- CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 778f7dafe..037728a9e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,7 @@ function(createDefaultCacheConfig) set(JUSTTESTS OFF CACHE BOOL "Build only for tests.") set(SOLIDITY ON CACHE BOOL "Build the Solidity language components (requried unless HEADLESS)") set(USENPM OFF CACHE BOOL "Use npm to recompile ethereum.js if it was changed") + set(ETHASHCL OFF CACHE BOOL "Build in support for GPU mining via OpenCL") endfunction() @@ -44,6 +45,10 @@ function(configureProject) endif () endif () + if (ETHASHCL) + add_definitions(-DETH_ETHASHCL) + endif() + if (EVMJIT) add_definitions(-DETH_EVMJIT) endif() @@ -181,6 +186,10 @@ add_subdirectory(libdevcrypto) add_subdirectory(libwhisper) add_subdirectory(libethash) +if (ETHASHCL) + add_subdirectory(libethash-cl) +endif () + add_subdirectory(libethcore) add_subdirectory(libevm) add_subdirectory(libethereum)