mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-24 20:49:25 +00:00
18 lines
395 B
CMake
18 lines
395 B
CMake
if (WITH_ARGON2)
|
|
add_definitions(/DXMRIG_ALGO_ARGON2)
|
|
|
|
list(APPEND HEADERS_CRYPTO
|
|
src/crypto/argon2/Hash.h
|
|
src/crypto/argon2/Impl.h
|
|
)
|
|
|
|
list(APPEND SOURCES_CRYPTO
|
|
src/crypto/argon2/Impl.cpp
|
|
)
|
|
|
|
add_subdirectory(src/3rdparty/argon2)
|
|
set(ARGON2_LIBRARY argon2)
|
|
else()
|
|
remove_definitions(/DXMRIG_ALGO_ARGON2)
|
|
set(ARGON2_LIBRARY "")
|
|
endif()
|