mirror of https://github.com/status-im/evmc.git
22 lines
640 B
CMake
22 lines
640 B
CMake
# EVMC: Ethereum Client-VM Connector API.
|
|
# Copyright 2018 The EVMC Authors.
|
|
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
|
|
|
add_library(
|
|
loader STATIC
|
|
${include_dir}/evmc/loader.h
|
|
loader.c
|
|
)
|
|
|
|
add_library(evmc::loader ALIAS loader)
|
|
set_target_properties(loader PROPERTIES
|
|
OUTPUT_NAME evmc-loader
|
|
POSITION_INDEPENDENT_CODE TRUE
|
|
)
|
|
target_include_directories(loader PUBLIC
|
|
$<BUILD_INTERFACE:${include_dir}>$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
)
|
|
target_link_libraries(loader INTERFACE ${CMAKE_DL_LIBS})
|
|
|
|
install(TARGETS loader EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|