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.
|
|
|
|
|
2019-11-05 12:33:35 +01:00
|
|
|
add_library(example-precompiles-vm SHARED example_precompiles_vm.cpp example_precompiles_vm.h)
|
2019-11-04 16:35:02 +01:00
|
|
|
add_library(evmc::example-precompiles-vm ALIAS example-precompiles-vm)
|
2019-11-28 21:16:50 +01:00
|
|
|
target_compile_features(example-precompiles-vm PRIVATE cxx_std_11)
|
2019-11-28 20:02:20 +01:00
|
|
|
target_link_libraries(example-precompiles-vm PRIVATE evmc::evmc)
|
2019-11-04 16:35:02 +01:00
|
|
|
|
2019-11-05 13:11:45 +01:00
|
|
|
add_library(example-precompiles-vm-static STATIC example_precompiles_vm.cpp example_precompiles_vm.h)
|
|
|
|
add_library(evmc::example-precompiles-vm-static ALIAS example-precompiles-vm-static)
|
2019-11-28 21:16:50 +01:00
|
|
|
target_compile_features(example-precompiles-vm-static PRIVATE cxx_std_11)
|
2019-11-28 20:02:20 +01:00
|
|
|
target_link_libraries(example-precompiles-vm-static PRIVATE evmc::evmc)
|
2019-11-05 13:11:45 +01:00
|
|
|
|
2019-05-09 07:55:04 +02:00
|
|
|
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)
|
2019-11-04 16:35:02 +01:00
|
|
|
install(TARGETS example-precompiles-vm
|
2019-07-23 12:13:32 +01:00
|
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
|
|
)
|
|
|
|
endif()
|