CMake: Flatten example_host

This commit is contained in:
Paweł Bylica 2018-08-30 18:16:15 +02:00
parent 98213f93ec
commit f858f79e2a
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
6 changed files with 6 additions and 14 deletions

View File

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

View File

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

View File

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

View File

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