solidity/test/CMakeLists.txt

26 lines
844 B
CMake
Raw Normal View History

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)
aux_source_directory(libevmasm SRC_LIST)
2016-11-14 20:35:24 +00:00
aux_source_directory(libsolidity SRC_LIST)
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")
set(EXECUTABLE soltest)
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)
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)
target_link_libraries(solfuzzer soljson ${Boost_PROGRAM_OPTIONS_LIBRARIES})