# Copyright (c) 2019-2020 The STE||AR-Group
#
# 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)

cmake_minimum_required(VERSION 3.13 FATAL_ERROR)

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

set(init_runtime_local_headers
    hpx/init_runtime_local/detail/init_logging.hpp
    hpx/init_runtime_local/init_runtime_local.hpp hpx/local/init.hpp
)

set(init_runtime_local_sources init_logging.cpp init_runtime_local.cpp)

include(HPX_AddModule)
add_hpx_module(
  full init_runtime_local
  GLOBAL_HEADER_GEN ON
  SOURCES ${init_runtime_local_sources}
  HEADERS ${init_runtime_local_headers}
  DEPENDENCIES hpx_core
  MODULE_DEPENDENCIES hpx_command_line_handling_local hpx_program_options
                      hpx_runtime_local
  CMAKE_SUBDIRS examples tests
)
