diff options
author | Gav Wood <i@gavwood.com> | 2014-06-29 01:23:32 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-06-29 01:23:32 +0800 |
commit | 674ff8e3cc1e95a351d14683db7b67a7822d5aa3 (patch) | |
tree | 7e1badfab76588f9d5675d3fbd3d113593449c71 /CMakeLists.txt | |
parent | 5e2b4bbd58f1d244d1aab985e07835071692d7a5 (diff) | |
download | dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.gz dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.bz2 dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.lz dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.xz dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.tar.zst dexon-solidity-674ff8e3cc1e95a351d14683db7b67a7822d5aa3.zip |
Full python serpent support.
Shared libs on all platforms.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 6 insertions, 20 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4117e6ed..2356b7d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,27 +6,20 @@ aux_source_directory(. SRC_LIST) set(EXECUTABLE lll) -if(APPLE) - # set(CMAKE_INSTALL_PREFIX ../lib) - add_library(${EXECUTABLE} SHARED ${SRC_LIST}) -else() - add_library(${EXECUTABLE} ${SRC_LIST}) -endif() -if (UNIX) - FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS thread date_time system filesystem program_options signals serialization chrono unit_test_framework locale) -endif() +# set(CMAKE_INSTALL_PREFIX ../lib) +add_library(${EXECUTABLE} SHARED ${SRC_LIST}) + file(GLOB HEADERS "*.h") include_directories(..) -target_link_libraries(${EXECUTABLE} ethential) + target_link_libraries(${EXECUTABLE} evmface) +target_link_libraries(${EXECUTABLE} ethential) target_link_libraries(${EXECUTABLE} gmp) + if(${TARGET_PLATFORM} STREQUAL "w64") - include_directories(/usr/x86_64-w64-mingw32/include/cryptopp) - target_link_libraries(${EXECUTABLE} cryptopp) target_link_libraries(${EXECUTABLE} boost_system-mt-s) - target_link_libraries(${EXECUTABLE} boost_filesystem-mt-s) target_link_libraries(${EXECUTABLE} boost_thread_win32-mt-s) target_link_libraries(${EXECUTABLE} iphlpapi) target_link_libraries(${EXECUTABLE} ws2_32) @@ -34,23 +27,16 @@ if(${TARGET_PLATFORM} STREQUAL "w64") target_link_libraries(${EXECUTABLE} shlwapi) elseif (APPLE) # Latest mavericks boost libraries only come with -mt - target_link_libraries(${EXECUTABLE} ${CRYPTOPP_LIBRARIES}) target_link_libraries(${EXECUTABLE} boost_system-mt) - target_link_libraries(${EXECUTABLE} boost_filesystem-mt) target_link_libraries(${EXECUTABLE} boost_thread-mt) find_package(Threads REQUIRED) target_link_libraries(${EXECUTABLE} ${CMAKE_THREAD_LIBS_INIT}) elseif (UNIX) - target_link_libraries(${EXECUTABLE} ${CRYPTOPP_LIBRARIES}) target_link_libraries(${EXECUTABLE} ${Boost_SYSTEM_LIBRARY}) - target_link_libraries(${EXECUTABLE} ${Boost_FILESYSTEM_LIBRARY}) target_link_libraries(${EXECUTABLE} ${Boost_THREAD_LIBRARY}) - target_link_libraries(${EXECUTABLE} ${Boost_DATE_TIME_LIBRARY}) target_link_libraries(${EXECUTABLE} ${CMAKE_THREAD_LIBS_INIT}) else () - target_link_libraries(${EXECUTABLE} ${CRYPTOPP_LIBRARIES}) target_link_libraries(${EXECUTABLE} boost_system) - target_link_libraries(${EXECUTABLE} boost_filesystem) target_link_libraries(${EXECUTABLE} boost_thread) find_package(Threads REQUIRED) target_link_libraries(${EXECUTABLE} ${CMAKE_THREAD_LIBS_INIT}) |