blob: cd97d6bb1c3cf99d34fd57bda8a6c2e46691b05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
#
# Copyright (C) 2003-2012 Sebastien Helleu <flashcode@flashtux.org>
#
# This file is part of WeeChat, the extensible chat client.
#
# WeeChat is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# WeeChat is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
#
SET(LIB_SCRIPTS_SRC script.c script.h script-callback.c script-callback.h
script-api.c script-api.h)
ADD_DEFINITIONS(${CMAKE_SHARED_LIBRARY_C_FLAGS})
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
ADD_LIBRARY(weechat_scripts STATIC ${LIB_SCRIPTS_SRC})
IF(ENABLE_PERL)
FIND_PACKAGE(Perl)
IF(PERL_FOUND)
ADD_SUBDIRECTORY( perl )
ENDIF(PERL_FOUND)
ENDIF(ENABLE_PERL)
IF(ENABLE_PYTHON)
FIND_PACKAGE(Python)
IF(PYTHON_FOUND)
ADD_SUBDIRECTORY( python )
ENDIF(PYTHON_FOUND)
ENDIF(ENABLE_PYTHON)
IF(ENABLE_RUBY)
FIND_PACKAGE(Ruby)
IF(RUBY_FOUND)
ADD_SUBDIRECTORY( ruby )
ENDIF(RUBY_FOUND)
ENDIF(ENABLE_RUBY)
IF(ENABLE_LUA)
FIND_PACKAGE(Lua)
IF(LUA_FOUND)
ADD_SUBDIRECTORY( lua )
ENDIF(LUA_FOUND)
ENDIF(ENABLE_LUA)
IF(ENABLE_TCL)
FIND_PACKAGE(TCL)
IF(TCL_FOUND)
ADD_SUBDIRECTORY( tcl )
ENDIF(TCL_FOUND)
ENDIF(ENABLE_TCL)
IF(ENABLE_GUILE)
FIND_PACKAGE(Guile)
IF(GUILE_FOUND)
ADD_SUBDIRECTORY( guile )
ENDIF(GUILE_FOUND)
ENDIF(ENABLE_GUILE)
|