mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
27 lines
905 B
CMake
27 lines
905 B
CMake
set(SOURCES
|
|
cryptonight_lite.c
|
|
../../options.h
|
|
../../algo/cryptonight/cryptonight.h
|
|
../../algo/cryptonight/cryptonight.c
|
|
../../algo/cryptonight-lite/cryptonight_lite_av1_aesni.c
|
|
../../algo/cryptonight-lite/cryptonight_lite_av2_aesni_double.c
|
|
../../algo/cryptonight-lite/cryptonight_lite_av3_softaes.c
|
|
../../algo/cryptonight-lite/cryptonight_lite_av4_softaes_double.c
|
|
../../crypto/c_keccak.c
|
|
../../crypto/c_blake256.c
|
|
../../crypto/c_groestl.c
|
|
../../crypto/c_jh.c
|
|
../../crypto/c_skein.c
|
|
../../crypto/soft_aes.c
|
|
)
|
|
|
|
add_executable(cryptonight_lite_app ${SOURCES})
|
|
target_link_libraries(cryptonight_lite_app unity)
|
|
|
|
include_directories(../..)
|
|
|
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -maes -fno-strict-aliasing")
|
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O2")
|
|
add_definitions(-DBUILD_TEST)
|
|
|
|
add_test(cryptonight_lite_test cryptonight_lite_app)
|