7 find_package (PCRE REQUIRED) |
7 find_package (PCRE REQUIRED) |
8 |
8 |
9 # add our include path |
9 # add our include path |
10 include_directories (${LibEvent_INCLUDE_DIRS} ${GnuTLS_INCLUDE_DIRS} ${Evsql_INCLUDE_DIRS} ${Lua51_INCLUDE_DIRS} ${PCRE_INCLUDE_DIRS}) |
10 include_directories (${LibEvent_INCLUDE_DIRS} ${GnuTLS_INCLUDE_DIRS} ${Evsql_INCLUDE_DIRS} ${Lua51_INCLUDE_DIRS} ${PCRE_INCLUDE_DIRS}) |
11 |
11 |
|
12 # XXX: hack until we separate these |
|
13 include_directories (${CMAKE_CURRENT_SOURCE_DIR}) |
|
14 |
12 # define our source code modules |
15 # define our source code modules |
13 set (CORE_SOURCES error.c log.c str.c object.c) |
16 set (LIB_SOURCES lib/error.c lib/log.c lib/str.c lib/object.c) |
14 set (IO_SOURCES transport.c service.c transport_fd.c sock.c resolve.c tcp.c tcp_transport.c tcp_client.c tcp_server.c ssl.c ssl_client.c fifo.c) |
17 set (IO_SOURCES transport.c service.c transport_fd.c sock.c resolve.c tcp.c tcp_transport.c tcp_client.c tcp_server.c ssl.c ssl_client.c fifo.c) |
15 set (PROTO_SOURCES line_proto.c msg_proto.c) |
18 set (PROTO_SOURCES line_proto.c msg_proto.c) |
16 set (IRC_SOURCES irc_line.c irc_conn.c irc_net.c irc_chan.c chain.c irc_cmd.c irc_proto.c irc_client.c irc_user.c irc_queue.c irc_net_connect.c) |
19 set (IRC_SOURCES irc_line.c irc_conn.c irc_net.c irc_chan.c chain.c irc_cmd.c irc_proto.c irc_client.c irc_user.c irc_queue.c irc_net_connect.c) |
17 set (LUA_SOURCES nexus_lua.c lua_objs.c lua_config.c lua_irc.c lua_func.c lua_type.c lua_thread.c) |
20 set (LUA_SOURCES nexus_lua.c lua_objs.c lua_config.c lua_irc.c lua_func.c lua_type.c lua_thread.c) |
18 set (CONSOLE_SOURCES console.c lua_console.c) |
21 set (CONSOLE_SOURCES console.c lua_console.c) |
19 |
22 |
20 set (NEXUS_SOURCES nexus.c ${CORE_SOURCES} ${IO_SOURCES} ${PROTO_SOURCES} ${IRC_SOURCES} ${LUA_SOURCES} ${CONSOLE_SOURCES} signals.c module.c config.c) |
23 set (SPBOT_SOURCES spbot/nexus.c spbot/signals.c spbot/module.c spbot/config.c) |
|
24 |
|
25 set (NEXUS_SOURCES ${SPBOT_SOURCES} ${LIB_SOURCES} ${IO_SOURCES} ${PROTO_SOURCES} ${IRC_SOURCES} ${LUA_SOURCES} ${CONSOLE_SOURCES}) |
21 set (IRC_LOG_SOURCES modules/irc_log.c) |
26 set (IRC_LOG_SOURCES modules/irc_log.c) |
22 set (LOGWATCH_SOURCES modules/logwatch.c modules/logwatch_source.c modules/logwatch_filter.c modules/logwatch_chan.c) |
27 set (LOGWATCH_SOURCES modules/logwatch.c modules/logwatch_source.c modules/logwatch_filter.c modules/logwatch_chan.c) |
23 |
28 |
24 # define our libraries |
29 # define our libraries |
25 set (MODULE_LIBRARIES "dl") |
30 set (MODULE_LIBRARIES "dl") |