|
|
|
cmake_minimum_required(VERSION 3.5.1)
|
|
|
|
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)
|
|
|
|
if(WIN32)
|
|
|
|
add_definitions(-DNATIVE_WINDOWS)
|
|
|
|
add_definitions(-DIGUANA_LOG2PACKETSIZE=20)
|
|
|
|
add_definitions(-DIGUANA_MAXPACKETSIZE=1572864)
|
|
|
|
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
|
|
|
|
add_definitions(-DNOMINMAX)
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/includes")
|
|
|
|
endif()
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/cpp-ethereum")
|
|
|
|
target_link_libraries(etomiclib-testnet PUBLIC curl libcrypto777 ethcore devcrypto devcore pthread)
|
|
|
|
target_link_libraries(etomiclib-mainnet PUBLIC curl libcrypto777 ethcore devcrypto devcore pthread)
|
|
|
|
target_link_libraries(alice PUBLIC etomiclib-testnet)
|
|
|
|
target_link_libraries(bob PUBLIC etomiclib-testnet)
|