mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
c50afdef18
Conflicts: libevm/FeeStructure.cpp test/vm.cpp
49 lines
1.7 KiB
CMake
49 lines
1.7 KiB
CMake
cmake_policy(SET CMP0015 NEW)
|
|
|
|
aux_source_directory(. SRC_LIST)
|
|
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
|
|
|
|
include_directories(..)
|
|
link_directories(../libethcore)
|
|
link_directories(../libethereum)
|
|
link_directories(../libevm)
|
|
link_directories(../libevmjit)
|
|
|
|
file(GLOB HEADERS "*.h")
|
|
add_executable(testeth ${SRC_LIST} ${HEADERS})
|
|
add_executable(createRandomTest createRandomTest.cpp vm.cpp)
|
|
|
|
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})
|
|
target_link_libraries(testeth evm)
|
|
target_link_libraries(testeth evmjit)
|
|
|
|
target_link_libraries(createRandomTest ethereum)
|
|
target_link_libraries(createRandomTest ethcore)
|
|
target_link_libraries(createRandomTest boost_chrono)
|
|
target_link_libraries(createRandomTest boost_unit_test_framework)
|
|
|
|
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)
|
|
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
|
elseif (UNIX)
|
|
find_package(Boost 1.53 REQUIRED COMPONENTS unit_test_framework)
|
|
else ()
|
|
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 ()
|