|
|
|
@ -5,6 +5,7 @@ option(STATIC_BINARY "Build static binary" OFF)
|
|
|
|
|
option(STATIC_LIBS "Link libuv and libzmq statically" OFF)
|
|
|
|
|
option(WITH_RANDOMX "Include the RandomX library in the build. If this is turned off, p2pool will rely on monerod for verifying RandomX hashes" ON)
|
|
|
|
|
option(WITH_LTO "Use link-time compiler optimization (if linking fails for you, run cmake with -DWITH_LTO=OFF)" ON)
|
|
|
|
|
option(WITH_UPNP "Include UPnP support. If this is turned off, p2pool will not be able to configure port forwarding on UPnP-enabled routers." ON)
|
|
|
|
|
|
|
|
|
|
option(DEV_TEST_SYNC "[Developer only] Sync test, stop p2pool after sync is complete" OFF)
|
|
|
|
|
|
|
|
|
@ -17,7 +18,13 @@ endif()
|
|
|
|
|
if (WITH_RANDOMX)
|
|
|
|
|
add_definitions(-DWITH_RANDOMX)
|
|
|
|
|
add_subdirectory(external/src/RandomX)
|
|
|
|
|
set(LIBS randomx)
|
|
|
|
|
set(LIBS ${LIBS} randomx)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (WITH_UPNP)
|
|
|
|
|
add_definitions(-DWITH_UPNP)
|
|
|
|
|
add_subdirectory(external/src/miniupnp/miniupnpc)
|
|
|
|
|
set(LIBS ${LIBS} libminiupnpc-static)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (DEV_TEST_SYNC)
|
|
|
|
@ -117,6 +124,9 @@ if (WITH_RANDOMX)
|
|
|
|
|
endif()
|
|
|
|
|
include_directories(external/src/rapidjson/include)
|
|
|
|
|
include_directories(external/src/robin-hood-hashing/src/include)
|
|
|
|
|
if (WITH_UPNP)
|
|
|
|
|
include_directories(external/src/miniupnp/miniupnpc/include)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
if (WIN32)
|
|
|
|
|
set(LIBS ${LIBS} ws2_32 iphlpapi userenv psapi)
|
|
|
|
|