CMake: Simplify libevmasm config

This commit is contained in:
Paweł Bylica 2017-08-16 13:29:46 +02:00
parent d1f4d110fb
commit 63372e4a85
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
2 changed files with 6 additions and 12 deletions

View File

@ -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 )

View File

@ -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})