2019-05-09 07:55:04 +02:00
|
|
|
# EVMC: Ethereum Client-VM Connector API.
|
|
|
|
# Copyright 2019 The EVMC Authors.
|
|
|
|
# Licensed under the Apache License, Version 2.0.
|
|
|
|
|
|
|
|
add_library(evmc-example-precompiles-vm SHARED example_precompiles_vm.cpp)
|
|
|
|
target_link_libraries(evmc-example-precompiles-vm PRIVATE evmc)
|
|
|
|
set_source_files_properties(example_precompiles_vm.cpp PROPERTIES
|
2019-07-23 12:13:32 +01:00
|
|
|
COMPILE_DEFINITIONS PROJECT_VERSION="${PROJECT_VERSION}")
|
|
|
|
|
|
|
|
if(EVMC_INSTALL)
|
|
|
|
install(TARGETS evmc-example-precompiles-vm
|
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
)
|
|
|
|
endif()
|