2018-06-07 10:24:31 +00:00
|
|
|
# EVMC: Ethereum Client-VM Connector API.
|
2019-04-24 14:12:13 +00:00
|
|
|
# Copyright 2018-2019 The EVMC Authors.
|
2018-11-26 15:52:36 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0.
|
2018-06-07 10:24:31 +00:00
|
|
|
|
2019-11-28 18:45:10 +00:00
|
|
|
add_library(evmc INTERFACE)
|
|
|
|
add_library(evmc::evmc ALIAS evmc)
|
|
|
|
target_include_directories(evmc INTERFACE $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
|
|
|
|
2019-11-28 19:02:20 +00:00
|
|
|
add_library(evmc_cpp INTERFACE)
|
|
|
|
add_library(evmc::evmc_cpp ALIAS evmc_cpp)
|
|
|
|
target_include_directories(evmc_cpp INTERFACE $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
|
|
|
target_link_libraries(evmc_cpp INTERFACE evmc::evmc)
|
|
|
|
|
2018-06-07 10:24:31 +00:00
|
|
|
add_subdirectory(instructions)
|
2018-07-04 23:10:33 +00:00
|
|
|
add_subdirectory(loader)
|
2019-11-18 16:24:33 +00:00
|
|
|
add_subdirectory(mocked_host)
|
2019-11-28 19:02:20 +00:00
|
|
|
|
|
|
|
if(EVMC_INSTALL)
|
|
|
|
install(TARGETS evmc evmc_cpp EXPORT evmcTargets)
|
|
|
|
endif()
|