xmrig/test/cryptonight/CMakeLists.txt

29 lines
873 B
Text
Raw Normal View History

2017-04-15 06:02:08 +00:00
set(SOURCES
2017-05-10 12:06:01 +00:00
cryptonight.c
../../options.h
2017-04-15 06:02:08 +00:00
../../algo/cryptonight/cryptonight.h
2017-05-10 12:06:01 +00:00
../../algo/cryptonight/cryptonight.c
../../algo/cryptonight/cryptonight_av1_aesni.c
../../algo/cryptonight/cryptonight_av2_aesni_double.c
../../algo/cryptonight/cryptonight_av3_softaes.c
../../algo/cryptonight/cryptonight_av4_softaes_double.c
2017-04-15 06:02:08 +00:00
../../crypto/c_keccak.c
../../crypto/c_blake256.c
../../crypto/c_groestl.c
../../crypto/c_jh.c
../../crypto/c_skein.c
../../crypto/soft_aes.c
2017-04-15 06:02:08 +00:00
)
2017-05-10 12:06:01 +00:00
add_executable(cryptonight_app ${SOURCES})
target_link_libraries(cryptonight_app unity)
2017-04-15 06:02:08 +00:00
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)
2017-05-10 12:06:01 +00:00
add_definitions(-DXMRIG_NO_AEON)
2017-04-15 06:02:08 +00:00
add_test(cryptonight_test cryptonight_app)