view doc/examples/CMakeLists.txt @ 917:91d8ded8719b release-3.1

misc: create release-3.1 branch
author David Demelier <markand@malikania.fr>
date Fri, 03 Jul 2020 11:34:58 +0200
parents 5e25439fe98d
children
line wrap: on
line source

#
# CMakeLists.txt -- CMake build system for irccd
#
# Copyright (c) 2013-2020 David Demelier <markand@malikania.fr>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#

project(examples)

configure_file(
	${examples_SOURCE_DIR}/irccd.conf.sample
	${examples_BINARY_DIR}/irccd.conf
)

configure_file(
	${examples_SOURCE_DIR}/irccdctl.conf.sample
	${examples_BINARY_DIR}/irccdctl.conf
)

install(
	FILES
		${examples_SOURCE_DIR}/irccd.conf.sample
		${examples_SOURCE_DIR}/irccdctl.conf.sample
	COMPONENT examples
	DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}
)

install(
	FILES ${examples_SOURCE_DIR}/sample-hook.sh
	DESTINATION ${CMAKE_INSTALL_DOCDIR}/examples
)

irccd_set_global(CPACK_COMPONENT_EXAMPLES_HIDDEN On)
irccd_set_global(CPACK_COMPONENT_EXAMPLES_DESCRIPTION "Install examples of configuration files")
irccd_set_global(CPACK_COMPONENT_EXAMPLES_GROUP "Documentation")