mirror of https://github.com/status-im/evmc.git
CMake: Add config for evmc::instructions library
This commit is contained in:
parent
d4562dc292
commit
d5ac5ce00e
|
@ -32,12 +32,16 @@ set(PROJECT_VERSION "0.1.0.dev0")
|
|||
|
||||
cable_configure_compiler(NO_STACK_PROTECTION)
|
||||
|
||||
set(include_dir ${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
add_library(evmc INTERFACE)
|
||||
add_library(evmc::evmc ALIAS evmc)
|
||||
target_include_directories(evmc INTERFACE include)
|
||||
target_include_directories(evmc INTERFACE ${include_dir})
|
||||
|
||||
install(DIRECTORY include/evmc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
|
||||
|
||||
add_subdirectory(lib)
|
||||
|
||||
if(EVMC_BUILD_TESTS)
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
/* EVMC: Ethereum Client-VM Connector API.
|
||||
* Copyright 2018 Pawel Bylica.
|
||||
* Licensed under the MIT License. See the LICENSE file.
|
||||
*/
|
|
@ -0,0 +1,5 @@
|
|||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2018 Pawel Bylica.
|
||||
# Licensed under the MIT License. See the LICENSE file.
|
||||
|
||||
add_subdirectory(instructions)
|
|
@ -0,0 +1,9 @@
|
|||
# EVMC: Ethereum Client-VM Connector API.
|
||||
# Copyright 2018 Pawel Bylica.
|
||||
# Licensed under the MIT License. See the LICENSE file.
|
||||
|
||||
add_library(instructions ${include_dir}/evmc/instructions.h instructions.c)
|
||||
add_library(evmc::instructions ALIAS instructions)
|
||||
target_include_directories(instructions PUBLIC ${include_dir})
|
||||
|
||||
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
@ -0,0 +1,6 @@
|
|||
/* EVMC: Ethereum Client-VM Connector API.
|
||||
* Copyright 2018 Pawel Bylica.
|
||||
* Licensed under the MIT License. See the LICENSE file.
|
||||
*/
|
||||
|
||||
#include <evmc/instructions.h>
|
Loading…
Reference in New Issue