|
@ -5,7 +5,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSTATICLIB") |
|
|
aux_source_directory(. SRC_LIST) |
|
|
aux_source_directory(. SRC_LIST) |
|
|
|
|
|
|
|
|
if(APPLE) |
|
|
if(APPLE) |
|
|
set(CMAKE_INSTALL_PREFIX ../lib) |
|
|
# set(CMAKE_INSTALL_PREFIX ../lib) |
|
|
add_library(ethereum SHARED ${SRC_LIST}) |
|
|
add_library(ethereum SHARED ${SRC_LIST}) |
|
|
else() |
|
|
else() |
|
|
add_library(ethereum ${SRC_LIST}) |
|
|
add_library(ethereum ${SRC_LIST}) |
|
@ -20,6 +20,7 @@ target_link_libraries(ethereum miniupnpc) |
|
|
target_link_libraries(ethereum leveldb) |
|
|
target_link_libraries(ethereum leveldb) |
|
|
target_link_libraries(ethereum gmp) |
|
|
target_link_libraries(ethereum gmp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(${TARGET_PLATFORM} STREQUAL "w64") |
|
|
if(${TARGET_PLATFORM} STREQUAL "w64") |
|
|
include_directories(/usr/x86_64-w64-mingw32/include/cryptopp) |
|
|
include_directories(/usr/x86_64-w64-mingw32/include/cryptopp) |
|
|
target_link_libraries(ethereum cryptopp) |
|
|
target_link_libraries(ethereum cryptopp) |
|
@ -38,8 +39,8 @@ else () |
|
|
target_link_libraries(ethereum ${CMAKE_THREAD_LIBS_INIT}) |
|
|
target_link_libraries(ethereum ${CMAKE_THREAD_LIBS_INIT}) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
target_link_libraries(ethereum cryptopp) |
|
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
|
|
|
|
|
link_directories(/usr/local/lib) |
|
|
include_directories(/usr/local/include) |
|
|
include_directories(/usr/local/include) |
|
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
|
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") |
|
|
|
|
|
|
|
|