mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ac1b7fde0e
Fixes to the FatTrie.
45 lines
1.5 KiB
CMake
45 lines
1.5 KiB
CMake
cmake_policy(SET CMP0015 NEW)
|
|
|
|
aux_source_directory(. SRC_LIST)
|
|
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
|
|
list(REMOVE_ITEM SRC_LIST "./checkRandomTest.cpp")
|
|
|
|
if (NOT JSONRPC)
|
|
list(REMOVE_ITEM SRC_LIST "./AccountHolder.cpp")
|
|
endif()
|
|
|
|
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
|
|
include_directories(BEFORE ..)
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
include_directories(${CRYPTOPP_INCLUDE_DIRS})
|
|
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
|
|
|
|
|
|
file(GLOB HEADERS "*.h")
|
|
add_executable(testeth ${SRC_LIST} ${HEADERS})
|
|
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
|
|
add_executable(checkRandomTest checkRandomTest.cpp vm.cpp TestHelper.cpp)
|
|
|
|
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
target_link_libraries(testeth ${CURL_LIBRARIES})
|
|
target_link_libraries(testeth ethereum)
|
|
target_link_libraries(testeth ethcore)
|
|
target_link_libraries(testeth secp256k1)
|
|
target_link_libraries(testeth solidity)
|
|
if (NOT HEADLESS AND NOT JUSTTESTS)
|
|
target_link_libraries(testeth webthree)
|
|
target_link_libraries(testeth natspec)
|
|
endif()
|
|
if (JSONRPC)
|
|
target_link_libraries(testeth web3jsonrpc)
|
|
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
|
|
endif()
|
|
|
|
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
target_link_libraries(createRandomTest ethereum)
|
|
target_link_libraries(createRandomTest ethcore)
|
|
target_link_libraries(checkRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
target_link_libraries(checkRandomTest ethereum)
|
|
target_link_libraries(checkRandomTest ethcore)
|
|
|