Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzbawls committed Oct 2, 2024
1 parent ced298f commit e2db213
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
13 changes: 9 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
message(STATUS "Boost Root set to: ${BOOST_R}")
endif()
set(Boost_USE_MULTITHREADED ON)
set(Boost_NO_BOOST_CMAKE ON)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(ENV{target} "Linux")
file(READ "/proc/version" _SYS_VERSION)
Expand Down Expand Up @@ -95,15 +94,21 @@ if(BerkeleyDB_FOUND)
endif()

find_package(LibEvent REQUIRED)

find_package(GMP REQUIRED)

find_package(ZMQ)
find_package(Miniupnp)
find_package(NAT-PMP)
find_package(Boost COMPONENTS system filesystem chrono thread REQUIRED)
find_package(Sodium REQUIRED)

set(Boost_VERBOSE ON)
# Use the now deprecated FindBoost internal for CMake versions 3.30.0 and above
# TODO: re-work this to support the upstream BoostConfig.cmake configuration.
if(CMAKE_VERSION VERSION_LESS "3.30.0")
else()
cmake_policy(SET CMP0167 NEW)
endif()
find_package(Boost COMPONENTS system filesystem chrono thread REQUIRED)

include_directories(${GMP_INCLUDE_DIR})

# run autogen.sh if missing header files from configure on Linux/Mac
Expand Down
7 changes: 7 additions & 0 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.14)
set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(Boost_USE_STATIC_LIBS ON)
set(Boost_VERBOSE ON)
# Use the now deprecated FindBoost internal for CMake versions 3.30.0 and above
# TODO: re-work this to support the upstream BoostConfig.cmake configuration.
if(CMAKE_VERSION VERSION_LESS "3.30.0")
else()
cmake_policy(SET CMP0167 NEW)
endif()
find_package(Boost COMPONENTS system filesystem chrono thread unit_test_framework REQUIRED)

set(JSON_TEST_FILES
Expand Down

0 comments on commit e2db213

Please sign in to comment.