aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-05-13 16:45:18 +0800
committerGav Wood <g@ethdev.com>2015-05-13 16:45:18 +0800
commit2654daab2628181597bb4c35ae69ca378248f8ba (patch)
tree1785547b286ffe7850ac88f0f99692a832b8e88b /CMakeLists.txt
parent0dc7c9630731d89c9d38a95e4b97af9fb7c57939 (diff)
downloaddexon-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.txt7
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} )
+