CMake: Make libs dependencies explicit

This commit is contained in:
Paweł Bylica 2017-08-17 15:48:39 +02:00
parent 0712e6302e
commit 99d198ffb0
No known key found for this signature in database
GPG Key ID: 7A0C037434FE77EF
3 changed files with 3 additions and 3 deletions

View File

@ -2,5 +2,5 @@ file(GLOB sources "*.cpp")
file(GLOB headers "*.h") file(GLOB headers "*.h")
add_library(lll ${sources} ${headers}) add_library(lll ${sources} ${headers})
target_link_libraries(lll PUBLIC evmasm) target_link_libraries(lll PUBLIC evmasm devcore)
target_include_directories(lll PUBLIC ..) target_include_directories(lll PUBLIC ..)

View File

@ -3,5 +3,5 @@ file(GLOB_RECURSE sources "*.cpp" "../libjulia/*.cpp")
file(GLOB_RECURSE headers "*.h" "../libjulia/*.h") file(GLOB_RECURSE headers "*.h" "../libjulia/*.h")
add_library(solidity ${sources} ${headers}) add_library(solidity ${sources} ${headers})
target_link_libraries(solidity PUBLIC evmasm PRIVATE ${Boost_REGEX_LIBRARIES}) target_link_libraries(solidity PUBLIC evmasm devcore PRIVATE ${Boost_REGEX_LIBRARIES})
target_include_directories(solidity PUBLIC ..) target_include_directories(solidity PUBLIC ..)

View File

@ -3,7 +3,7 @@ list(REMOVE_ITEM sources "${CMAKE_CURRENT_SOURCE_DIR}/fuzzer.cpp")
file(GLOB_RECURSE headers "*.h") file(GLOB_RECURSE headers "*.h")
add_executable(soltest ${sources} ${headers}) add_executable(soltest ${sources} ${headers})
target_link_libraries(soltest PRIVATE soljson solidity lll ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES}) target_link_libraries(soltest PRIVATE soljson solidity lll evmasm devcore ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
add_executable(solfuzzer fuzzer.cpp) add_executable(solfuzzer fuzzer.cpp)
target_link_libraries(solfuzzer soljson evmasm ${Boost_PROGRAM_OPTIONS_LIBRARIES}) target_link_libraries(solfuzzer soljson evmasm ${Boost_PROGRAM_OPTIONS_LIBRARIES})