diff options
author | Gav Wood <g@ethdev.com> | 2015-05-13 16:45:18 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-05-13 16:45:18 +0800 |
commit | 2654daab2628181597bb4c35ae69ca378248f8ba (patch) | |
tree | 1785547b286ffe7850ac88f0f99692a832b8e88b /CMakeLists.txt | |
parent | 0dc7c9630731d89c9d38a95e4b97af9fb7c57939 (diff) | |
download | dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.tar dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.tar.gz dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.tar.bz2 dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.tar.lz dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.tar.xz dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.tar.zst dexon-solidity-2654daab2628181597bb4c35ae69ca378248f8ba.zip |
Revert "CMake: set default RUNTIME_OUTPUT_DIRECTORY property to "bin""
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index eb8fea95..f8150806 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,10 +19,15 @@ set(EXECUTABLE evmasm) file(GLOB HEADERS "*.h") -add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS}) +if (ETH_STATIC) + add_library(${EXECUTABLE} STATIC ${SRC_LIST} ${HEADERS}) +else() + add_library(${EXECUTABLE} SHARED ${SRC_LIST} ${HEADERS}) +endif() target_link_libraries(${EXECUTABLE} evmcore) target_link_libraries(${EXECUTABLE} devcrypto) install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib ) install( FILES ${HEADERS} DESTINATION include/${EXECUTABLE} ) + |