mirror of https://github.com/status-im/evmc.git
21 lines
597 B
CMake
21 lines
597 B
CMake
# EVMC: Ethereum Client-VM Connector API.
|
|
# Copyright 2016-2019 The EVMC Authors.
|
|
# Licensed under the Apache License, Version 2.0.
|
|
|
|
include(GNUInstallDirs)
|
|
|
|
if(NOT CMAKE_CXX_STANDARD)
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
endif()
|
|
set(CMAKE_DEBUG_POSTFIX "")
|
|
|
|
add_subdirectory(example_vm)
|
|
add_subdirectory(example_precompiles_vm)
|
|
|
|
add_library(evmc-example-host STATIC example_host.cpp)
|
|
target_link_libraries(evmc-example-host PRIVATE evmc)
|
|
|
|
add_executable(evmc-example example.c)
|
|
target_link_libraries(evmc-example PRIVATE evmc-example-host evmc-example-vm-static evmc)
|