2018-08-30 14:49:20 +02:00
|
|
|
# EVMC: Ethereum Client-VM Connector API.
|
2019-04-24 16:12:13 +02:00
|
|
|
# Copyright 2016-2019 The EVMC Authors.
|
2019-03-14 02:55:16 +01:00
|
|
|
# Licensed under the Apache License, Version 2.0.
|
2018-04-13 08:39:47 +02:00
|
|
|
|
2018-08-30 18:19:26 +02:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2019-06-28 14:29:28 +01:00
|
|
|
add_subdirectory(example_vm)
|
2019-05-09 07:55:04 +02:00
|
|
|
add_subdirectory(example_precompiles_vm)
|
|
|
|
|
2018-08-30 18:16:15 +02:00
|
|
|
add_library(evmc-example-host STATIC example_host.cpp)
|
2019-11-28 20:02:20 +01:00
|
|
|
target_link_libraries(evmc-example-host PRIVATE evmc::evmc_cpp)
|
2018-08-30 14:49:20 +02:00
|
|
|
|
2019-08-08 12:42:43 +02:00
|
|
|
add_executable(evmc-example-static example.c)
|
2019-11-28 20:02:20 +01:00
|
|
|
target_link_libraries(evmc-example-static PRIVATE evmc-example-host evmc::example-vm-static evmc::evmc)
|
2019-08-08 12:42:43 +02:00
|
|
|
target_compile_definitions(evmc-example-static PRIVATE STATICALLY_LINKED_EXAMPLE)
|
|
|
|
|
2018-08-31 13:08:26 +02:00
|
|
|
add_executable(evmc-example example.c)
|
2019-11-28 20:02:20 +01:00
|
|
|
target_link_libraries(evmc-example PRIVATE evmc-example-host evmc::loader)
|