You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
414 B
13 lines
414 B
cmake_policy(SET CMP0015 NEW)
|
|
|
|
set(CMAKE_ASM_COMPILER "yasm")
|
|
|
|
#aux_source_directory(. SRC_LIST)
|
|
add_library(secp256k1 secp256k1.c field_5x52_asm.asm)
|
|
|
|
#set(CMAKE_C_FLAGS "-DUSE_FIELD_5X52 -DUSE_FIELD_5X52_ASM -DUSE_NUM_OPENSSL -DUSE_FIELD_INV_BUILTIN")
|
|
#target_link_libraries(secp256k1 crypto)
|
|
set(CMAKE_C_FLAGS "-std=c99 -DUSE_FIELD_GMP -DUSE_NUM_GMP -DUSE_FIELD_INV_NUM")
|
|
target_link_libraries(secp256k1 gmp)
|
|
|
|
|
|
|