|
@ -10,7 +10,9 @@ if(APPLE) |
|
|
else() |
|
|
else() |
|
|
add_library(ethereum ${SRC_LIST}) |
|
|
add_library(ethereum ${SRC_LIST}) |
|
|
endif() |
|
|
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() |
|
|
file(GLOB HEADERS "*.h") |
|
|
file(GLOB HEADERS "*.h") |
|
|
|
|
|
|
|
|
include_directories(../secp256k1) |
|
|
include_directories(../secp256k1) |
|
@ -39,6 +41,14 @@ elseif (APPLE) |
|
|
target_link_libraries(ethereum boost_thread-mt) |
|
|
target_link_libraries(ethereum boost_thread-mt) |
|
|
find_package(Threads REQUIRED) |
|
|
find_package(Threads REQUIRED) |
|
|
target_link_libraries(ethereum ${CMAKE_THREAD_LIBS_INIT}) |
|
|
target_link_libraries(ethereum ${CMAKE_THREAD_LIBS_INIT}) |
|
|
|
|
|
elseif (UNIX) |
|
|
|
|
|
target_link_libraries(ethereum ${CRYPTOPP_LIBRARIES}) |
|
|
|
|
|
target_link_libraries(ethereum ${Boost_SYSTEM_LIBRARY}) |
|
|
|
|
|
target_link_libraries(ethereum ${Boost_FILESYSTEM_LIBRARY}) |
|
|
|
|
|
target_link_libraries(ethereum ${Boost_THREAD_LIBRARY}) |
|
|
|
|
|
target_link_libraries(ethereum ${Boost_DATE_TIME_LIBRARY}) |
|
|
|
|
|
target_link_libraries(ethereum leveldb) |
|
|
|
|
|
target_link_libraries(ethereum snappy) |
|
|
else () |
|
|
else () |
|
|
target_link_libraries(ethereum ${CRYPTOPP_LIBRARIES}) |
|
|
target_link_libraries(ethereum ${CRYPTOPP_LIBRARIES}) |
|
|
target_link_libraries(ethereum boost_system) |
|
|
target_link_libraries(ethereum boost_system) |
|
|