From fda9851e969b9b1c792fbd76f0009efe9cc1bdc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Wed, 20 Jun 2018 22:33:14 +0200 Subject: [PATCH] CMake: Move examplevm artifacts to parent dir --- examples/examplevm/CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/examples/examplevm/CMakeLists.txt b/examples/examplevm/CMakeLists.txt index d418218..031d6eb 100644 --- a/examples/examplevm/CMakeLists.txt +++ b/examples/examplevm/CMakeLists.txt @@ -1,4 +1,4 @@ -# EVMC -- Ethereum Client-VM Connector API +# EVMC: Ethereum Client-VM Connector API # Copyright 2018 Pawel Bylica. # Licensed under the MIT License. See the LICENSE file. @@ -6,9 +6,16 @@ include(GNUInstallDirs) add_library(evmc-examplevm examplevm.c) target_link_libraries(evmc-examplevm PRIVATE evmc) -set_target_properties(evmc-examplevm PROPERTIES DEBUG_POSTFIX "") +set_target_properties( + evmc-examplevm PROPERTIES + DEBUG_POSTFIX "" + RUNTIME_OUTPUT_DIRECTORY .. + LIBRARY_OUTPUT_DIRECTORY .. +) -install(TARGETS evmc-examplevm +install( + TARGETS evmc-examplevm ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} +)