mirror of https://github.com/status-im/evmc.git
commit
d4f8c9a5fd
|
@ -0,0 +1,3 @@
|
|||
/build
|
||||
/cmake-build-*
|
||||
/.idea
|
|
@ -0,0 +1,11 @@
|
|||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(evmc)
|
||||
|
||||
add_library(evmc INTERFACE)
|
||||
target_include_directories(evmc INTERFACE include)
|
||||
|
||||
option(EVMC_BUILD_EXAMPLES "Build EVMC examples" ON)
|
||||
if(EVMC_BUILD_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
endif()
|
|
@ -0,0 +1,21 @@
|
|||
version: 2
|
||||
jobs:
|
||||
|
||||
build:
|
||||
docker:
|
||||
- image: ethereum/cpp-build-env
|
||||
steps:
|
||||
- checkout
|
||||
- run:
|
||||
name: "Configure"
|
||||
working_directory: ~/build
|
||||
command: cmake ../project
|
||||
- run:
|
||||
name: "Build"
|
||||
command: cmake --build ~/build
|
||||
|
||||
workflows:
|
||||
version: 2
|
||||
evmc:
|
||||
jobs:
|
||||
- build
|
|
@ -1,8 +1,7 @@
|
|||
add_library(example-vm STATIC examplevm.c)
|
||||
target_include_directories(example-vm PRIVATE ../include)
|
||||
target_link_libraries(example-vm PRIVATE evmc)
|
||||
target_compile_options(example-vm PRIVATE -Wno-extra)
|
||||
|
||||
add_executable(example-capi capi.c)
|
||||
target_include_directories(example-capi PRIVATE ../include)
|
||||
target_link_libraries(example-capi PRIVATE example-vm)
|
||||
target_link_libraries(example-capi PRIVATE evmc example-vm)
|
||||
target_compile_options(example-capi PRIVATE -Wno-extra)
|
||||
|
|
Loading…
Reference in New Issue