Artem Pikulin
7 years ago
5 changed files with 22 additions and 22 deletions
@ -1,7 +1,7 @@ |
|||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
|||
add_executable(marketmaker mm.c) |
|||
add_executable(marketmaker-testnet mm.c ../mini-gmp.c ../groestl.c ../segwit_addr.c) |
|||
add_executable(marketmaker-mainnet mm.c ../mini-gmp.c ../groestl.c ../segwit_addr.c) |
|||
include_directories(../../crypto777) |
|||
target_sources(marketmaker PRIVATE ../mini-gmp.c) |
|||
target_sources(marketmaker PRIVATE ../groestl.c) |
|||
target_sources(marketmaker PRIVATE ../segwit_addr.c) |
|||
target_link_libraries(marketmaker PRIVATE nanomsg curl pthread m libcrypto777 libjpeg libsecp256k1 "-Wl,--allow-multiple-definition" etomiclib) |
|||
target_compile_definitions(marketmaker-testnet PRIVATE ETOMIC_TESTNET) |
|||
target_link_libraries(marketmaker-testnet PRIVATE nanomsg curl pthread m libcrypto777 libjpeg libsecp256k1 "-Wl,--allow-multiple-definition" etomiclib-testnet) |
|||
target_link_libraries(marketmaker-mainnet PRIVATE nanomsg curl pthread m libcrypto777 libjpeg libsecp256k1 "-Wl,--allow-multiple-definition" etomiclib-mainnet) |
@ -1,10 +1,11 @@ |
|||
cmake_minimum_required(VERSION 2.8.9) |
|||
add_library(etomiclib etomiclib.cpp) |
|||
add_library(etomiccurl etomiccurl.c) |
|||
add_library(etomiclib-testnet etomiclib.cpp etomiccurl.c) |
|||
add_library(etomiclib-mainnet etomiclib.cpp etomiccurl.c) |
|||
target_compile_definitions(etomiclib-testnet PRIVATE ETOMIC_TESTNET) |
|||
add_executable(alice alice.c) |
|||
add_executable(bob bob.c) |
|||
include_directories("${CMAKE_SOURCE_DIR}/cpp-ethereum") |
|||
target_link_libraries(etomiccurl PUBLIC curl libcrypto777) |
|||
target_link_libraries(etomiclib PUBLIC ethcore devcrypto devcore etomiccurl) |
|||
target_link_libraries(alice PUBLIC etomiclib) |
|||
target_link_libraries(bob PUBLIC etomiclib etomiccurl) |
|||
target_link_libraries(etomiclib-testnet PUBLIC curl libcrypto777 ethcore devcrypto devcore) |
|||
target_link_libraries(etomiclib-mainnet PUBLIC curl libcrypto777 ethcore devcrypto devcore) |
|||
target_link_libraries(alice PUBLIC etomiclib-testnet) |
|||
target_link_libraries(bob PUBLIC etomiclib-testnet) |
Loading…
Reference in new issue