mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CMake: Simplify libevmasm config
This commit is contained in:
parent
d1f4d110fb
commit
63372e4a85
@ -1,12 +1,6 @@
|
|||||||
aux_source_directory(. SRC_LIST)
|
file(GLOB sources "*.cpp")
|
||||||
|
file(GLOB headers "*.h")
|
||||||
|
|
||||||
set(EXECUTABLE solevmasm)
|
add_library(evmasm ${sources} ${headers})
|
||||||
|
target_link_libraries(evmasm PUBLIC devcore jsoncpp)
|
||||||
file(GLOB HEADERS "*.h")
|
target_include_directories(evmasm PUBLIC ..)
|
||||||
|
|
||||||
include_directories(BEFORE ..)
|
|
||||||
add_library(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
|
|
||||||
eth_use(${EXECUTABLE} REQUIRED Dev::soldevcore)
|
|
||||||
target_link_libraries(${EXECUTABLE} jsoncpp)
|
|
||||||
|
|
||||||
install( TARGETS ${EXECUTABLE} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )
|
|
||||||
|
@ -23,4 +23,4 @@ include_directories(BEFORE ..)
|
|||||||
target_link_libraries(${EXECUTABLE} soljson devcore ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
target_link_libraries(${EXECUTABLE} soljson devcore ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
|
||||||
|
|
||||||
add_executable(solfuzzer fuzzer.cpp)
|
add_executable(solfuzzer fuzzer.cpp)
|
||||||
target_link_libraries(solfuzzer soljson ${Boost_PROGRAM_OPTIONS_LIBRARIES})
|
target_link_libraries(solfuzzer soljson evmasm ${Boost_PROGRAM_OPTIONS_LIBRARIES})
|
||||||
|
Loading…
Reference in New Issue
Block a user