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) 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)