2014-01-03 01:27:19 +00:00
|
|
|
cmake_policy(SET CMP0015 NEW)
|
|
|
|
|
|
|
|
aux_source_directory(. SRC_LIST)
|
2015-03-12 10:01:06 +00:00
|
|
|
list(REMOVE_ITEM SRC_LIST "./createRandomVMTest.cpp")
|
2015-03-12 08:16:32 +00:00
|
|
|
list(REMOVE_ITEM SRC_LIST "./createRandomStateTest.cpp")
|
2015-03-12 10:01:06 +00:00
|
|
|
list(REMOVE_ITEM SRC_LIST "./checkRandomVMTest.cpp")
|
|
|
|
list(REMOVE_ITEM SRC_LIST "./checkRandomStateTest.cpp")
|
2014-01-07 21:51:19 +00:00
|
|
|
|
2015-02-23 11:26:31 +00:00
|
|
|
if (NOT JSONRPC)
|
|
|
|
list(REMOVE_ITEM SRC_LIST "./AccountHolder.cpp")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
include_directories(BEFORE ${JSONCPP_INCLUDE_DIRS})
|
|
|
|
include_directories(BEFORE ..)
|
2014-12-17 15:47:22 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
2014-11-20 09:55:36 +00:00
|
|
|
include_directories(${CRYPTOPP_INCLUDE_DIRS})
|
2014-12-08 23:58:02 +00:00
|
|
|
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
|
2015-02-23 11:26:31 +00:00
|
|
|
|
2014-01-03 01:27:19 +00:00
|
|
|
|
2014-10-16 13:10:54 +00:00
|
|
|
file(GLOB HEADERS "*.h")
|
|
|
|
add_executable(testeth ${SRC_LIST} ${HEADERS})
|
2015-03-13 10:19:26 +00:00
|
|
|
add_executable(createRandomVMTest createRandomVMTest.cpp vm.cpp TestHelper.cpp Stats.cpp)
|
|
|
|
add_executable(createRandomStateTest createRandomStateTest.cpp TestHelper.cpp Stats.cpp)
|
|
|
|
add_executable(checkRandomVMTest checkRandomVMTest.cpp vm.cpp TestHelper.cpp Stats.cpp)
|
|
|
|
add_executable(checkRandomStateTest checkRandomStateTest.cpp TestHelper.cpp Stats.cpp)
|
2014-06-28 17:23:32 +00:00
|
|
|
|
2014-12-15 18:01:20 +00:00
|
|
|
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
2014-12-12 12:13:29 +00:00
|
|
|
target_link_libraries(testeth ${CURL_LIBRARIES})
|
2014-07-03 13:00:22 +00:00
|
|
|
target_link_libraries(testeth ethereum)
|
|
|
|
target_link_libraries(testeth ethcore)
|
|
|
|
target_link_libraries(testeth secp256k1)
|
2014-10-06 15:13:52 +00:00
|
|
|
target_link_libraries(testeth solidity)
|
2015-03-01 21:54:05 +00:00
|
|
|
if (NOT HEADLESS AND NOT JUSTTESTS)
|
2015-02-23 11:26:31 +00:00
|
|
|
target_link_libraries(testeth webthree)
|
|
|
|
target_link_libraries(testeth natspec)
|
|
|
|
endif()
|
2014-12-11 14:06:11 +00:00
|
|
|
if (JSONRPC)
|
2014-11-06 09:41:37 +00:00
|
|
|
target_link_libraries(testeth web3jsonrpc)
|
2014-12-12 12:13:29 +00:00
|
|
|
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
|
2014-10-24 12:21:20 +00:00
|
|
|
endif()
|
2014-01-03 01:27:19 +00:00
|
|
|
|
2015-03-12 10:01:06 +00:00
|
|
|
target_link_libraries(createRandomVMTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
|
|
target_link_libraries(createRandomVMTest ethereum)
|
|
|
|
target_link_libraries(createRandomVMTest ethcore)
|
2015-03-12 08:16:32 +00:00
|
|
|
target_link_libraries(createRandomStateTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
|
|
target_link_libraries(createRandomStateTest ethereum)
|
|
|
|
target_link_libraries(createRandomStateTest ethcore)
|
2015-03-12 10:01:06 +00:00
|
|
|
target_link_libraries(checkRandomVMTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
|
|
target_link_libraries(checkRandomVMTest ethereum)
|
|
|
|
target_link_libraries(checkRandomVMTest ethcore)
|
|
|
|
target_link_libraries(checkRandomStateTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
|
|
|
target_link_libraries(checkRandomStateTest ethereum)
|
|
|
|
target_link_libraries(checkRandomStateTest ethcore)
|
2015-01-13 13:22:12 +00:00
|
|
|
|