2014-01-03 01:27:19 +00:00
|
|
|
cmake_policy(SET CMP0015 NEW)
|
|
|
|
|
|
|
|
aux_source_directory(. SRC_LIST)
|
2016-11-14 20:35:24 +00:00
|
|
|
aux_source_directory(libdevcore SRC_LIST)
|
2016-11-07 13:29:12 +00:00
|
|
|
aux_source_directory(libevmasm SRC_LIST)
|
2016-11-14 20:35:24 +00:00
|
|
|
aux_source_directory(libsolidity SRC_LIST)
|
2017-04-28 16:15:18 +00:00
|
|
|
aux_source_directory(libjulia SRC_LIST)
|
2016-11-14 20:35:24 +00:00
|
|
|
aux_source_directory(contracts SRC_LIST)
|
2016-11-27 23:19:10 +00:00
|
|
|
aux_source_directory(liblll SRC_LIST)
|
2017-05-03 08:30:01 +00:00
|
|
|
aux_source_directory(libjulia SRC_LIST)
|
2015-04-20 20:48:53 +00:00
|
|
|
|
2017-02-16 15:59:19 +00:00
|
|
|
list(REMOVE_ITEM SRC_LIST "./fuzzer.cpp")
|
2015-08-25 13:38:41 +00:00
|
|
|
|
2017-02-16 15:59:19 +00:00
|
|
|
get_filename_component(TESTS_DIR "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
|
2014-01-03 01:27:19 +00:00
|
|
|
|
2016-06-02 14:39:17 +00:00
|
|
|
file(GLOB HEADERS "*.h" "*/*.h")
|
2015-08-24 13:51:52 +00:00
|
|
|
set(EXECUTABLE soltest)
|
2016-04-30 23:42:49 +00:00
|
|
|
eth_simple_add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
2015-04-30 11:27:55 +00:00
|
|
|
|
2016-11-27 23:19:10 +00:00
|
|
|
eth_use(${EXECUTABLE} REQUIRED Solidity::solidity Solidity::lll)
|
2015-08-24 13:51:52 +00:00
|
|
|
|
|
|
|
include_directories(BEFORE ..)
|
2017-05-02 21:49:01 +00:00
|
|
|
target_link_libraries(${EXECUTABLE} soljson ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
2014-01-03 01:27:19 +00:00
|
|
|
|
2017-02-16 15:59:19 +00:00
|
|
|
add_executable(solfuzzer fuzzer.cpp)
|
2017-04-06 14:32:20 +00:00
|
|
|
target_link_libraries(solfuzzer soljson ${Boost_PROGRAM_OPTIONS_LIBRARIES})
|