2018-06-07 12:24:31 +02:00
|
|
|
# EVMC: Ethereum Client-VM Connector API.
|
2019-04-24 16:12:13 +02:00
|
|
|
# Copyright 2018-2019 The EVMC Authors.
|
2018-11-26 16:52:36 +01:00
|
|
|
# Licensed under the Apache License, Version 2.0.
|
2018-06-07 12:24:31 +02:00
|
|
|
|
2019-11-28 19:45:10 +01: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 20:02:20 +01: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 12:24:31 +02:00
|
|
|
add_subdirectory(instructions)
|
2018-07-05 01:10:33 +02:00
|
|
|
add_subdirectory(loader)
|
2019-11-18 17:24:33 +01:00
|
|
|
add_subdirectory(mocked_host)
|
2019-11-28 20:02:20 +01:00
|
|
|
|
|
|
|
if(EVMC_INSTALL)
|
|
|
|
install(TARGETS evmc evmc_cpp EXPORT evmcTargets)
|
|
|
|
endif()
|