11cb0ef41Sopenharmony_ci# Copyright (C) The c-ares project and its contributors
21cb0ef41Sopenharmony_ci# SPDX-License-Identifier: MIT
31cb0ef41Sopenharmony_ci# Headers and Man Pages installation target
41cb0ef41Sopenharmony_ciIF (CARES_INSTALL)
51cb0ef41Sopenharmony_ci	# ManPages
61cb0ef41Sopenharmony_ci	FILE (GLOB DevelManPages "." "*.3")
71cb0ef41Sopenharmony_ci	INSTALL (FILES ${DevelManPages}
81cb0ef41Sopenharmony_ci		DESTINATION ${CMAKE_INSTALL_MANDIR}/man3
91cb0ef41Sopenharmony_ci		COMPONENT Devel
101cb0ef41Sopenharmony_ci	)
111cb0ef41Sopenharmony_ci
121cb0ef41Sopenharmony_ci	IF (CARES_BUILD_TOOLS)
131cb0ef41Sopenharmony_ci		FILE (GLOB ToolManPages "." "*.1")
141cb0ef41Sopenharmony_ci		INSTALL (FILES ${ToolManPages}
151cb0ef41Sopenharmony_ci			DESTINATION ${CMAKE_INSTALL_MANDIR}/man1
161cb0ef41Sopenharmony_ci			COMPONENT Tools
171cb0ef41Sopenharmony_ci		)
181cb0ef41Sopenharmony_ci	ENDIF ()
191cb0ef41Sopenharmony_ciENDIF ()
20