Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | function(prepend var prefix) | ||||
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}) | ||||
# Make sure boost uses std::atomic (it doesn't before 1.63) | |||||
target_compile_definitions(util PUBLIC BOOST_SP_USE_STD_ATOMIC BOOST_AC_USE_STD_ATOMIC) | |||||
# More completely unrelated features shared by all executables. | # More completely unrelated features shared by all executables. | ||||
# Because nothing says this is different from util than "common" | # Because nothing says this is different from util than "common" | ||||
add_library(common | add_library(common | ||||
amount.cpp | amount.cpp | ||||
base58.cpp | base58.cpp | ||||
cashaddr.cpp | cashaddr.cpp | ||||
cashaddrenc.cpp | cashaddrenc.cpp | ||||
chainparams.cpp | chainparams.cpp | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |