Browse Source

Ensure dependencies are conditional on Windows

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

4
alethzero/CMakeLists.txt

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

4
eth/CMakeLists.txt

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

4
test/CMakeLists.txt

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

Loading…
Cancel
Save