12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- aux_source_directory(. SRC_LIST)
- if(JSONRPC_FOUND)
- message("INFO: we found JSONRPC ")
- else(JSONRPC_FOUND)
- endif(JSONRPC_FOUND)
- file(GLOB HEADERS "*.h")
- message ("SRC LIST: " ${SRC_LIST})
- message ("HEDERS LIST: " ${HEADERS})
- add_library(web3jsonrpc ${SRC_LIST} ${HEADERS})
- jsonrpcstub_create(web3jsonrpc eth.json
- dev::rpc::EthFace ${CMAKE_CURRENT_SOURCE_DIR} EthFace
- EthClient ${CMAKE_CURRENT_BINARY_DIR} EthClient
- )
- jsonrpcstub_create(web3jsonrpc db.json
- dev::rpc::DBFace ${CMAKE_CURRENT_SOURCE_DIR} DBFace
- DBClient ${CMAKE_CURRENT_BINARY_DIR} DBClient
- )
- jsonrpcstub_create(web3jsonrpc debug.json
- dev::rpc::DebugFace ${CMAKE_CURRENT_SOURCE_DIR} DebugFace
- DebugClient ${CMAKE_CURRENT_BINARY_DIR} DebugClient
- )
- jsonrpcstub_create(web3jsonrpc whisper.json
- dev::rpc::WhisperFace ${CMAKE_CURRENT_SOURCE_DIR} WhisperFace
- WhisperClient ${CMAKE_CURRENT_BINARY_DIR} WhisperClient
- )
- jsonrpcstub_create(web3jsonrpc net.json
- dev::rpc::NetFace ${CMAKE_CURRENT_SOURCE_DIR} NetFace
- NetClient ${CMAKE_CURRENT_BINARY_DIR} NetClient
- )
- jsonrpcstub_create(web3jsonrpc bzz.json
- dev::rpc::BzzFace ${CMAKE_CURRENT_SOURCE_DIR} BzzFace
- BzzClient ${CMAKE_CURRENT_BINARY_DIR} BzzClient
- )
- jsonrpcstub_create(web3jsonrpc web3.json
- dev::rpc::Web3Face ${CMAKE_CURRENT_SOURCE_DIR} Web3Face
- Web3Client ${CMAKE_CURRENT_BINARY_DIR} Web3Client
- )
- jsonrpcstub_create(web3jsonrpc admin_net.json
- dev::rpc::AdminNetFace ${CMAKE_CURRENT_SOURCE_DIR} AdminNetFace
- AdminNetClient ${CMAKE_CURRENT_BINARY_DIR} AdminNetClient
- )
- jsonrpcstub_create(web3jsonrpc admin_eth.json
- dev::rpc::AdminEthFace ${CMAKE_CURRENT_SOURCE_DIR} AdminEthFace
- AdminEthClient ${CMAKE_CURRENT_BINARY_DIR} AdminEthClient
- )
- jsonrpcstub_create(web3jsonrpc admin_utils.json
- dev::rpc::AdminUtilsFace ${CMAKE_CURRENT_SOURCE_DIR} AdminUtilsFace
- AdminUtilsClient ${CMAKE_CURRENT_BINARY_DIR} AdminUtilsClient
- )
- jsonrpcstub_create(web3jsonrpc personal.json
- dev::rpc::PersonalFace ${CMAKE_CURRENT_SOURCE_DIR} PersonalFace
- PersonalClient ${CMAKE_CURRENT_BINARY_DIR} PersonalClient
- )
- jsonrpcstub_create(web3jsonrpc test.json
- dev::rpc::TestFace ${CMAKE_CURRENT_SOURCE_DIR} TestFace
- TestClient ${CMAKE_CURRENT_BINARY_DIR} TestClient
- )
- find_package(Web3)
- target_include_directories(web3jsonrpc PRIVATE ..)
- target_link_libraries(web3jsonrpc ${Web3_WEBTHREE_LIBRARIES}
- ${Web3_WHISPER_LIBRARIES}
- jsonrpc::server)
- install(TARGETS web3jsonrpc RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib)
|