cmake_minimum_required(VERSION 4.0) project(DistributedHostGraph LANGUAGES CXX) # Reference platform component, built as an installed-package consumer so it # cannot accidentally rely on whole-repository linkage. set(CMAKE_CXX_STANDARD 26) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) find_package(Void CONFIG REQUIRED COMPONENTS Functional Net) add_library(distributed_host_graph STATIC src/host_graph.cpp src/single_node.cpp) target_include_directories(distributed_host_graph PUBLIC include) target_link_libraries(distributed_host_graph PUBLIC Void::Functional Void::Net) add_executable(distributed_host_graph_test tests/host_graph_test.cpp) target_link_libraries(distributed_host_graph_test PRIVATE distributed_host_graph) add_executable(distributed_single_node_test tests/single_node_test.cpp) target_link_libraries(distributed_single_node_test PRIVATE distributed_host_graph) enable_testing() add_test(NAME distributed_host_graph COMMAND distributed_host_graph_test) add_test(NAME distributed_single_node COMMAND distributed_single_node_test)