2018-06-07 10:24:31 +00:00
|
|
|
# EVMC: Ethereum Client-VM Connector API.
|
2018-08-21 07:44:18 +00:00
|
|
|
# Copyright 2018 The EVMC Authors.
|
2018-08-22 11:57:25 +00:00
|
|
|
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
2018-06-07 10:24:31 +00:00
|
|
|
|
2018-06-11 16:14:36 +00:00
|
|
|
add_library(
|
2018-06-25 16:39:34 +00:00
|
|
|
instructions STATIC
|
2018-06-11 16:14:36 +00:00
|
|
|
${include_dir}/evmc/instructions.h
|
|
|
|
instruction_metrics.c
|
2018-06-11 16:17:20 +00:00
|
|
|
instruction_names.c
|
2018-06-11 16:14:36 +00:00
|
|
|
)
|
|
|
|
|
2018-06-07 10:24:31 +00:00
|
|
|
add_library(evmc::instructions ALIAS instructions)
|
2018-06-19 09:51:22 +00:00
|
|
|
set_target_properties(instructions PROPERTIES OUTPUT_NAME evmc-instructions)
|
2018-06-19 09:25:19 +00:00
|
|
|
target_include_directories(instructions PUBLIC $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
|
2018-07-16 10:27:29 +00:00
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
set_target_properties(instructions PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
|
|
|
|
endif()
|
2018-06-07 10:24:31 +00:00
|
|
|
|
|
|
|
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|