mirror of https://github.com/status-im/evmc.git
examples: install example-precompiles-vm as well
This commit is contained in:
parent
be56b092b5
commit
ab841c35f8
|
@ -5,4 +5,12 @@
|
||||||
add_library(evmc-example-precompiles-vm SHARED example_precompiles_vm.cpp)
|
add_library(evmc-example-precompiles-vm SHARED example_precompiles_vm.cpp)
|
||||||
target_link_libraries(evmc-example-precompiles-vm PRIVATE evmc)
|
target_link_libraries(evmc-example-precompiles-vm PRIVATE evmc)
|
||||||
set_source_files_properties(example_precompiles_vm.cpp PROPERTIES
|
set_source_files_properties(example_precompiles_vm.cpp PROPERTIES
|
||||||
COMPILE_DEFINITIONS PROJECT_VERSION="${PROJECT_VERSION}")
|
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()
|
||||||
|
|
Loading…
Reference in New Issue