Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Lines | if(${CMAKE_SYSTEM_NAME} MATCHES "Windows") | ||||
find_library(WS2_32_LIBRARY NAMES ws2_32) | find_library(WS2_32_LIBRARY NAMES ws2_32) | ||||
target_link_libraries(util ${WS2_32_LIBRARY}) | target_link_libraries(util ${WS2_32_LIBRARY}) | ||||
else() | else() | ||||
list(APPEND BOOST_PACKAGES_REQUIRED date_time thread) | list(APPEND BOOST_PACKAGES_REQUIRED date_time thread) | ||||
endif() | endif() | ||||
function(prepend var prefix) | function(prepend var prefix) | ||||
set(listVar "") | set(listVar "") | ||||
foreach(f ${ARGN}) | foreach(f ${ARGN}) | ||||
list(APPEND listVar "${prefix}${f}") | list(APPEND listVar "${prefix}${f}") | ||||
endforeach(f) | endforeach(f) | ||||
set(${var} "${listVar}" PARENT_SCOPE) | set(${var} "${listVar}" PARENT_SCOPE) | ||||
endfunction(prepend) | endfunction(prepend) | ||||
prepend(BOOST_LIBRARIES "Boost::" ${BOOST_PACKAGES_REQUIRED}) | prepend(BOOST_LIBRARIES "Boost::" ${BOOST_PACKAGES_REQUIRED}) | ||||
find_package(Boost 1.58 REQUIRED ${BOOST_PACKAGES_REQUIRED}) | find_package(Boost 1.58 REQUIRED ${BOOST_PACKAGES_REQUIRED}) | ||||
target_link_libraries(util univalue crypto ${BOOST_LIBRARIES}) | target_link_libraries(util univalue crypto ${BOOST_LIBRARIES}) | ||||
# More completely unrelated features shared by all executables. | # More completely unrelated features shared by all executables. | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |