You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
cmake_policy(SET CMP0015 NEW)
|
|
|
|
aux_source_directory(. SRC_LIST)
|
|
|
|
include_directories(../secp256k1)
|
|
include_directories(../libethereum)
|
|
link_directories(../libethereum)
|
|
|
|
add_executable(testeth ${SRC_LIST})
|
|
|
|
if (${TARGET_PLATFORM} STREQUAL "w64")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
|
|
target_link_libraries(testeth gcc)
|
|
target_link_libraries(testeth gdi32)
|
|
target_link_libraries(testeth ws2_32)
|
|
target_link_libraries(testeth mswsock)
|
|
target_link_libraries(testeth shlwapi)
|
|
target_link_libraries(testeth iphlpapi)
|
|
target_link_libraries(testeth cryptopp)
|
|
target_link_libraries(testeth boost_system-mt-s)
|
|
target_link_libraries(testeth boost_filesystem-mt-s)
|
|
target_link_libraries(testeth boost_thread_win32-mt-s)
|
|
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
|
elseif (UNIX)
|
|
|
|
else ()
|
|
target_link_libraries(testeth ${CRYPTOPP_LIBRARIES})
|
|
target_link_libraries(testeth boost_system)
|
|
target_link_libraries(testeth boost_filesystem)
|
|
find_package(Threads REQUIRED)
|
|
target_link_libraries(testeth ${CMAKE_THREAD_LIBS_INIT})
|
|
endif ()
|
|
|
|
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
include_directories(/usr/local/include)
|
|
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|
|
|
target_link_libraries(testeth ethereum)
|
|
target_link_libraries(testeth secp256k1)
|
|
target_link_libraries(testeth miniupnpc)
|
|
target_link_libraries(testeth gmp)
|
|
|