diff --git a/iguana/exchanges/CMakeLists.txt b/iguana/exchanges/CMakeLists.txt index edd42c9c8..618b95da6 100644 --- a/iguana/exchanges/CMakeLists.txt +++ b/iguana/exchanges/CMakeLists.txt @@ -1,7 +1,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -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) +set(MM_SOURCES mm.c ../mini-gmp.c ../groestl.c ../segwit_addr.c ../keccak.c) +set(MM_LIBS nanomsg curl pthread m libcrypto777 libjpeg libsecp256k1 "-Wl,--allow-multiple-definition") +add_executable(marketmaker-testnet ${MM_SOURCES}) +add_executable(marketmaker-mainnet ${MM_SOURCES}) include_directories(../../crypto777) 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) \ No newline at end of file +target_link_libraries(marketmaker-testnet PRIVATE ${MM_LIBS} etomiclib-testnet) +target_link_libraries(marketmaker-mainnet PRIVATE ${MM_LIBS} etomiclib-mainnet) \ No newline at end of file