evmc/lib/instructions/CMakeLists.txt

20 lines
715 B
CMake
Raw Normal View History

# EVMC: Ethereum Client-VM Connector API.
2018-08-21 07:44:18 +00:00
# Copyright 2018 The EVMC Authors.
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
add_library(
2018-06-25 16:39:34 +00: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)
2018-06-19 09:25:19 +00:00
target_include_directories(instructions PUBLIC $<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:include>)
if(BUILD_SHARED_LIBS)
set_target_properties(instructions PROPERTIES POSITION_INDEPENDENT_CODE TRUE)
endif()
install(TARGETS instructions EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})