|
@ -1,4 +1,4 @@ |
|
|
cmake_policy(SET CMP0015 NEW) |
|
|
cmake_policy(SET CMP0015 OLD) |
|
|
|
|
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON) |
|
|
aux_source_directory(. SRC_LIST) |
|
|
aux_source_directory(. SRC_LIST) |
|
@ -46,7 +46,6 @@ target_link_libraries(${EXECUTABLE} evm) |
|
|
target_link_libraries(${EXECUTABLE} ethcore) |
|
|
target_link_libraries(${EXECUTABLE} ethcore) |
|
|
target_link_libraries(${EXECUTABLE} devcrypto) |
|
|
target_link_libraries(${EXECUTABLE} devcrypto) |
|
|
target_link_libraries(${EXECUTABLE} secp256k1) |
|
|
target_link_libraries(${EXECUTABLE} secp256k1) |
|
|
target_link_libraries(${EXECUTABLE} gmp) |
|
|
|
|
|
target_link_libraries(${EXECUTABLE} serpent) |
|
|
target_link_libraries(${EXECUTABLE} serpent) |
|
|
target_link_libraries(${EXECUTABLE} lll) |
|
|
target_link_libraries(${EXECUTABLE} lll) |
|
|
target_link_libraries(${EXECUTABLE} solidity) |
|
|
target_link_libraries(${EXECUTABLE} solidity) |
|
@ -80,19 +79,7 @@ if (APPLE) |
|
|
file(REMOVE \${LINGER_RM}) |
|
|
file(REMOVE \${LINGER_RM}) |
|
|
endif () |
|
|
endif () |
|
|
") |
|
|
") |
|
|
elseif ("${TARGET_PLATFORM}" STREQUAL "w64") |
|
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-keep-inline-dllexport -static-libgcc -static-libstdc++ -static") |
|
|
|
|
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-s -Wl,-subsystem,windows -mthreads -L/usr/x86_64-w64-mingw32/plugins/platforms") |
|
|
|
|
|
target_link_libraries(${EXECUTABLE} gcc) |
|
|
|
|
|
target_link_libraries(${EXECUTABLE} mingw32 qtmain mswsock iphlpapi qwindows shlwapi Qt5PlatformSupport opengl32 gdi32 comdlg32 oleaut32 imm32 winmm ole32 uuid ws2_32) |
|
|
|
|
|
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} crypt32) |
|
|
|
|
|
target_link_libraries(${EXECUTABLE} Qt5PlatformSupport) |
|
|
|
|
|
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS) |
|
|
|
|
|
elseif (UNIX) |
|
|
|
|
|
else () |
|
|
else () |
|
|
message(ERROR "platform not supported") |
|
|
install( TARGETS ${EXECUTEABLE} RUNTIME DESTINATION bin) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|