#=================================================================
# file:         config_header.cmake
# Copyright (c) 2020-2021 moe-org 保留所有权利
#=================================================================

set(U_CONFIG_HEADER_SOURCE "${U_SOURCE_ROOT}/config.hpp")
set(U_CONFIG_HEADER_OUTPUT "${U_BINARY_ROOT}/utopia-configured-header/utopia-configured.hpp")
set(U_CONFIG_HEADER_INCLUDE_DIR "${U_BINARY_ROOT}/utopia-configured-header")

# 设置提示信息
set(
	"this_file_is_waiting_to_be_configured_by_CMake" 
	"this file has been configured by cmake. origin:${U_CONFIG_HEADER_SOURCE}"
)

configure_file(
	${U_CONFIG_HEADER_SOURCE}
	${U_CONFIG_HEADER_OUTPUT}
)

target_include_directories(${U_CORE_LIBRARY} PUBLIC ${U_CONFIG_HEADER_INCLUDE_DIR})
target_include_directories(${U_SERVER_EXECUTABLE} PUBLIC ${U_CONFIG_HEADER_INCLUDE_DIR})
target_include_directories(${U_CLIENT_EXECUTABLE} PUBLIC ${U_CONFIG_HEADER_INCLUDE_DIR})
