sha256csm init

This commit is contained in:
Pavel Rosický 2022-07-26 23:54:26 +02:00
parent 4c57b60e59
commit 90a826cbe4
17 changed files with 166 additions and 18 deletions

View file

@ -1,4 +1,4 @@
if (WITH_GHOSTRIDER)
if (WITH_GHOSTRIDER OR WITH_SHA256CSM) # WITH_SHA256CSM for sph_sha2
add_definitions(/DXMRIG_ALGO_GHOSTRIDER)
add_subdirectory(src/crypto/ghostrider)
set(GHOSTRIDER_LIBRARY ghostrider)

8
cmake/sha256.cmake Normal file
View file

@ -0,0 +1,8 @@
if (WITH_SHA256CSM)
add_definitions(/DXMRIG_ALGO_SHA256CSM)
# add_subdirectory(src/crypto/sha256)
# set(SHA256_LIBRARY sha256)
else()
remove_definitions(/DXMRIG_ALGO_SHA256CSM)
# set(SHA256_LIBRARY "")
endif()