mirror of https://github.com/status-im/evmc.git
CMake: Flatten example_host
This commit is contained in:
parent
98213f93ec
commit
f858f79e2a
|
@ -6,8 +6,11 @@ if(NOT CMAKE_CXX_STANDARD)
|
|||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||
endif()
|
||||
set(CMAKE_DEBUG_POSTFIX "")
|
||||
|
||||
add_library(evmc-example-host STATIC example_host.cpp)
|
||||
target_link_libraries(evmc-example-host PRIVATE evmc)
|
||||
|
||||
add_subdirectory(example_host)
|
||||
add_subdirectory(examplevm)
|
||||
|
||||
add_executable(evmc-example example.c)
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "example_host/example_host.h"
|
||||
#include "example_host.h"
|
||||
#include "examplevm/examplevm.h"
|
||||
|
||||
#include <evmc/helpers.h>
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
# EVMC: Ethereum Client-VM Connector API
|
||||
# Copyright 2018 The EVMC Authors.
|
||||
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||
|
||||
add_library(evmc-example-host STATIC example_host.cpp)
|
||||
target_link_libraries(evmc-example-host PRIVATE evmc::evmc)
|
||||
set_target_properties(evmc-example-host PROPERTIES
|
||||
DEBUG_POSTFIX ""
|
||||
RUNTIME_OUTPUT_DIRECTORY ..
|
||||
LIBRARY_OUTPUT_DIRECTORY ..
|
||||
)
|
|
@ -2,7 +2,7 @@
|
|||
// Copyright 2018 The EVMC Authors.
|
||||
// Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||
|
||||
#include "../../examples/example_host/example_host.h"
|
||||
#include "../../examples/example_host.h"
|
||||
#include "vmtester.hpp"
|
||||
|
||||
#include <evmc/helpers.h>
|
||||
|
|
Loading…
Reference in New Issue