2018-07-04 23:10:33 +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-07-04 23:10:33 +00:00
|
|
|
|
|
|
|
add_library(
|
|
|
|
loader STATIC
|
|
|
|
${include_dir}/evmc/loader.h
|
|
|
|
loader.c
|
|
|
|
)
|
|
|
|
|
|
|
|
add_library(evmc::loader ALIAS loader)
|
2018-08-21 07:07:03 +00:00
|
|
|
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}>
|
|
|
|
)
|
2018-07-05 11:01:20 +00:00
|
|
|
target_link_libraries(loader INTERFACE ${CMAKE_DL_LIBS})
|
2018-07-04 23:10:33 +00:00
|
|
|
|
|
|
|
install(TARGETS loader EXPORT evmcTargets DESTINATION ${CMAKE_INSTALL_LIBDIR})
|