Browse Source

Ensure dependencies are conditional on Windows

cl-refactor
lotrf3 10 years ago
parent
commit
65cbeafd58
  1. 2
      alethzero/CMakeLists.txt
  2. 2
      eth/CMakeLists.txt
  3. 2
      test/CMakeLists.txt

2
alethzero/CMakeLists.txt

@ -42,7 +42,9 @@ eth_add_executable(${EXECUTABLE}
add_dependencies(${EXECUTABLE} BuildInfo.h)
if((WIN32)
target_link_libraries(${EXECUTABLE} Iphlpapi)
endif()
target_link_libraries(${EXECUTABLE} Qt5::Core)
target_link_libraries(${EXECUTABLE} Qt5::Widgets)
target_link_libraries(${EXECUTABLE} Qt5::WebEngine)

2
eth/CMakeLists.txt

@ -19,7 +19,9 @@ add_executable(${EXECUTABLE} ${SRC_LIST} ${HEADERS})
add_dependencies(${EXECUTABLE} BuildInfo.h)
if((WIN32)
target_link_libraries(${EXECUTABLE} Iphlpapi)
endif()
target_link_libraries(${EXECUTABLE} ${Boost_REGEX_LIBRARIES})
if (READLINE_FOUND)

2
test/CMakeLists.txt

@ -69,7 +69,9 @@ endforeach(file)
file(GLOB HEADERS "*.h")
add_executable(testeth ${SRC_LIST} ${HEADERS})
if((WIN32)
target_link_libraries(testeth Iphlpapi)
endif()
target_link_libraries(testeth ${Boost_UNIT_TEST_FRAMEWORK_LIBRARIES})
target_link_libraries(testeth ${CURL_LIBRARIES})
target_link_libraries(testeth ethereum)

Loading…
Cancel
Save