aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-07-03 21:00:22 +0800
committerGav Wood <i@gavwood.com>2014-07-03 21:00:22 +0800
commitd9340fb74ae8aad00ff2bb5d11b191adeb29d94b (patch)
tree036987b93e7db02ed330fbda75acd80c7ed34e04 /CMakeLists.txt
parent2b7133dc13081bb0e24f359dc7216ea8815f91a7 (diff)
downloaddexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.gz
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.tar.zst
dexon-solidity-d9340fb74ae8aad00ff2bb5d11b191adeb29d94b.zip
Windows build coersions.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt21
1 files changed, 9 insertions, 12 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7e49a51e..9d45db8c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,32 +8,29 @@ link_directories(../libethereum)
add_executable(testeth ${SRC_LIST})
-FIND_PACKAGE(Boost 1.53 REQUIRED COMPONENTS unit_test_framework)
+target_link_libraries(testeth ethereum)
+target_link_libraries(testeth ethcore)
+target_link_libraries(testeth secp256k1)
+target_link_libraries(testeth gmp)
+target_link_libraries(testeth ${CRYPTOPP_LS})
if (${TARGET_PLATFORM} STREQUAL "w64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
+ 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)
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)
-
+ find_package(Boost 1.53 REQUIRED COMPONENTS unit_test_framework)
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 ()
-
-target_link_libraries(testeth ethereum)
-target_link_libraries(testeth secp256k1)
-target_link_libraries(testeth miniupnpc)
-target_link_libraries(testeth gmp)