evmc/lib/instructions/CMakeLists.txt

24 lines
660 B
CMake
Raw Normal View History

# EVMC: Ethereum Client-VM Connector API.
# Copyright 2018-2019 The EVMC Authors.
# Licensed under the Apache License, Version 2.0.
add_library(
2018-06-25 18:39:34 +02:00
instructions STATIC
${include_dir}/evmc/instructions.h
instruction_metrics.c
instruction_names.c
)
add_library(evmc::instructions ALIAS instructions)
set_target_properties(instructions PROPERTIES
OUTPUT_NAME evmc-instructions
POSITION_INDEPENDENT_CODE TRUE
)
target_include_directories(instructions PUBLIC
$<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>
)
2019-07-23 11:57:21 +02:00
if(EVMC_INSTALL)
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()