xmrig/cmake/kawpow.cmake

20 lines
448 B
CMake
Raw Normal View History

2020-05-24 21:57:41 +00:00
if (WITH_KAWPOW)
add_definitions(/DXMRIG_ALGO_KAWPOW)
list(APPEND HEADERS_CRYPTO
src/crypto/kawpow/KPCache.h
src/crypto/kawpow/KPHash.h
)
list(APPEND SOURCES_CRYPTO
src/crypto/kawpow/KPCache.cpp
src/crypto/kawpow/KPHash.cpp
)
2022-08-05 03:27:21 +00:00
add_subdirectory(src/base/3rdparty/libethash)
2020-05-24 21:57:41 +00:00
set(ETHASH_LIBRARY ethash)
else()
remove_definitions(/DXMRIG_ALGO_KAWPOW)
set(ETHASH_LIBRARY "")
endif()