#=================================================================
# file:         backward.cmake
# Copyright (c) 2020-2021 moe-org 保留所有权利
#=================================================================
# 设置backward依赖

include(FetchContent)

FetchContent_Declare(
	backward
	GIT_REPOSITORY		https://github.com/bombela/backward-cpp
	GIT_TAG				"master"
	SOURCE_DIR			"${U_LIBRARY_DIR}/backward"
)

FetchContent_MakeAvailable(
	backward
)

# 引入
target_sources(${U_CORE_LIBRARY} PUBLIC ${BACKWARD_ENABLE})
target_sources(${U_SERVER_EXECUTABLE} PUBLIC ${BACKWARD_ENABLE})
target_sources(${U_CLIENT_EXECUTABLE} PUBLIC ${BACKWARD_ENABLE})
add_backward(${U_CORE_LIBRARY})
add_backward(${U_SERVER_EXECUTABLE})
add_backward(${U_CLIENT_EXECUTABLE})
