# Copyright (c) 2007-2023 Hartmut Kaiser
# Copyright (c)      2011 Bryce Lelbach
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

set(root
    "${PROJECT_SOURCE_DIR}/libs/full/runtime_components/tests/unit/agas/components"
)

add_hpx_component(
  simple_refcnt_checker INTERNAL_FLAGS
  INSTALL_COMPONENT tests
  DEPENDENCIES iostreams_component
  HEADER_GLOB "${root}/simple_refcnt_checker.h*"
  SOURCE_GLOB "${root}/simple_refcnt_checker.c*"
  FOLDER "Tests/Unit/Modules/Full/AGAS"
  EXCLUDE_FROM_ALL AUTOGLOB
)

add_hpx_component(
  managed_refcnt_checker INTERNAL_FLAGS
  INSTALL_COMPONENT tests
  DEPENDENCIES iostreams_component
  HEADER_GLOB "${root}/managed_refcnt_checker.h*"
  SOURCE_GLOB "${root}/managed_refcnt_checker.c*"
  FOLDER "Tests/Unit/Modules/Full/AGAS"
  EXCLUDE_FROM_ALL AUTOGLOB
)

add_hpx_component(
  simple_mobile_object INTERNAL_FLAGS
  INSTALL_COMPONENT tests
  HEADER_GLOB "${root}/simple_mobile_object.h*"
  SOURCE_GLOB "${root}/simple_mobile_object.c*"
  FOLDER "Tests/Unit/Modules/Full/AGAS"
  EXCLUDE_FROM_ALL AUTOGLOB
)
