view plugins/CMakeLists.txt @ 374:e9adab218027

Misc: various code cleanup
author David Demelier <markand@malikania.fr>
date Thu, 08 Dec 2016 20:06:38 +0100
parents 60b94daf4d24
children c6fbb6e0e06d
line wrap: on
line source

#
# CMakeLists.txt -- CMake build system for irccd
#
# Copyright (c) 2013-2016 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(plugins)

set(
    IRCCD_PLUGINS
    ask
    auth
    hangman
    history
    logger
    plugin
    roulette
    CACHE INTERNAL ""
)

foreach (plugin ${IRCCD_PLUGINS})
    irccd_define_plugin(
        NAME ${plugin}
        TYPE JS
        SCRIPT ${plugins_SOURCE_DIR}/${plugin}/${plugin}.js
        DOCS ${plugins_SOURCE_DIR}/${plugin}/${plugin}.md
    )
endforeach ()

# Debug plugins.
irccd_define_plugin(
    NAME debugnative
    TYPE NATIVE
    SOURCES ${plugins_SOURCE_DIR}/debugnative/main.cpp
)