view doc/examples/CMakeLists.txt @ 626:c6000e13ab02

Irccd: prefix get_ (rule)
author David Demelier <markand@malikania.fr>
date Fri, 22 Dec 2017 22:05:00 +0100
parents 0b156b82b8c1
children 27587ff92a64
line wrap: on
line source

#
# CMakeLists.txt -- CMake build system for irccd
#
# Copyright (c) 2013-2017 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 ${WITH_SYSCONFDIR}
)

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