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.
|
2019-03-14 18:02:41 +01:00
|
|
|
# Licensed under the Apache License, Version 2.0.
|
2018-06-07 12:24:31 +02:00
|
|
|
|
2018-06-11 18:14:36 +02:00
|
|
|
add_library(
|
2018-06-25 18:39:34 +02:00
|
|
|
instructions STATIC
|
2018-06-11 18:14:36 +02:00
|
|
|
${include_dir}/evmc/instructions.h
|
|
|
|
instruction_metrics.c
|
2018-06-11 18:17:20 +02:00
|
|
|
instruction_names.c
|
2018-06-11 18:14:36 +02:00
|
|
|
)
|
|
|
|
|
2018-06-07 12:24:31 +02:00
|
|
|
add_library(evmc::instructions ALIAS instructions)
|
2018-06-19 11:51:22 +02:00
|
|
|
set_target_properties(instructions PROPERTIES OUTPUT_NAME evmc-instructions)
|
2018-06-19 11:25:19 +02:00
|
|
|
target_include_directories(instructions PUBLIC $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
2018-06-07 12:24:31 +02:00
|
|
|
|
2019-07-23 11:57:21 +02:00
|
|
|
if(EVMC_INSTALL)
|
|
|
|
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|
|
|
|
endif()
|