solidity/CMakeLists.txt

38 lines
1.4 KiB
CMake
Raw Normal View History

2014-01-03 01:27:19 +00:00
cmake_policy(SET CMP0015 NEW)
aux_source_directory(. SRC_LIST)
2014-10-14 10:41:01 +00:00
list(REMOVE_ITEM SRC_LIST "./createRandomTest.cpp")
list(REMOVE_ITEM SRC_LIST "./checkRandomTest.cpp")
2014-01-07 21:51:19 +00:00
include_directories(${Boost_INCLUDE_DIRS})
include_directories(${CRYPTOPP_INCLUDE_DIRS})
include_directories(${JSONCPP_INCLUDE_DIRS})
include_directories(${JSON_RPC_CPP_INCLUDE_DIRS})
include_directories(..)
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})
add_executable(createRandomTest createRandomTest.cpp vm.cpp TestHelper.cpp)
add_executable(checkRandomTest checkRandomTest.cpp vm.cpp TestHelper.cpp)
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)
target_link_libraries(testeth solidity)
2014-10-13 09:22:28 +00:00
target_link_libraries(testeth webthree)
2014-12-11 14:06:11 +00:00
if (JSONRPC)
target_link_libraries(testeth web3jsonrpc)
2014-12-12 12:13:29 +00:00
target_link_libraries(testeth ${JSON_RPC_CPP_CLIENT_LIBRARIES})
endif()
2014-01-03 01:27:19 +00:00
2014-12-15 18:01:20 +00:00
target_link_libraries(createRandomTest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
2014-10-14 10:41:01 +00:00
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)