CMake: Move examplevm artifacts to parent dir

This commit is contained in:
Paweł Bylica 2018-06-20 22:33:14 +02:00
parent 81ac4b62ab
commit fda9851e96
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
1 changed files with 11 additions and 4 deletions

View File

@ -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}
)