Debian Codegraph @

src/bnetd/CMakeLists.txt

raw
1 # add aditional includes corresponding to the additional libraries bellow
2 include_directories(${ZLIB_INCLUDE_DIR} ${MYSQL_INCLUDE_DIR} ${LUA_INCLUDE_DIR}
3 ${SQLITE3_INCLUDE_DIR} ${PGSQL_INCLUDE_DIR} ${ODBC_INCLUDE_DIR}
4 )
5
6 set(BNETD_SOURCES
7 account.cpp account.h account_wrap.cpp account_wrap.h adbanner.cpp
8 adbanner.h alias_command.cpp alias_command.h anongame.cpp
9 anongame_gameresult.cpp anongame_gameresult.h anongame.h
10 anongame_infos.cpp anongame_infos.h anongame_maplists.cpp
11 anongame_maplists.h attrgroup.cpp attrgroup.h attr.h attrlayer.cpp
12 attrlayer.h autoupdate.cpp autoupdate.h channel_conv.cpp channel_conv.h
13 channel.cpp channel.h character.cpp character.h clan.cpp clan.h
14 cmdline.cpp cmdline.h command.cpp command_groups.cpp command_groups.h
15 command.h connection.cpp connection.h file.cpp file.h file_plain.cpp
16 file_plain.h friends.cpp friends.h game_conv.cpp
17 game_conv.h game.cpp game.h handle_anongame.cpp handle_anongame.h
18 handle_apireg.cpp handle_apireg.h handle_bnet.cpp handle_bnet.h
19 handle_bot.cpp handle_bot.h handle_d2cs.cpp handle_d2cs.h
20 handle_file.cpp handle_file.h handle_init.cpp handle_init.h
21 handle_irc_common.cpp handle_irc_common.h handle_irc.cpp handle_irc.h
22 handlers.h handle_telnet.cpp handle_telnet.h handle_udp.cpp
23 handle_udp.h handle_wol.cpp handle_wol.h handle_wol_gameres.cpp
24 handle_wol_gameres.h helpfile.cpp helpfile.h
25 ipban.cpp ipban.h irc.cpp irc.h ladder_calc.cpp ladder_calc.h ladder.cpp
26 ladder.h mail.cpp mail.h main.cpp message.cpp message.h news.cpp news.h
27 output.cpp output.h prefs.cpp prefs.h quota.h realm.cpp realm.h
28 runprog.cpp runprog.h server.cpp server.h sql_common.cpp sql_common.h
29 sql_dbcreator.cpp sql_dbcreator.h sql_mysql.cpp sql_mysql.h sql_odbc.cpp
30 sql_odbc.h sql_pgsql.cpp sql_pgsql.h sql_sqlite3.cpp sql_sqlite3.h
31 storage.cpp storage_file.cpp storage_file.h storage.h
32 storage_sql.cpp storage_sql.h support.cpp support.h
33 team.cpp team.h tick.cpp tick.h timer.cpp timer.h topic.cpp topic.h
34 tournament.cpp tournament.h icons.cpp icons.h tracker.cpp tracker.h udptest_send.cpp
35 udptest_send.h versioncheck.cpp versioncheck.h watch.cpp watch.h
36 anongame_wol.cpp anongame_wol.h handle_wserv.cpp handle_wserv.h
37 luafunctions.cpp luafunctions.h luainterface.cpp luainterface.h
38 luaobjects.cpp luaobjects.h luawrapper.cpp luawrapper.h
39 i18n.cpp i18n.h userlog.cpp userlog.h
40 ../win32/winmain.cpp ../win32/winmain.h
41 ../json/json.hpp
42 )
43
44 set(BNETD_CONSOLE_RESOURCES
45 ../win32/console_resource.h ../win32/console_resource.rc)
46
47 set(BNETD_GUI_RESOURCES
48 ../win32/resource.h ../win32/resource.rc)
49
50 if(WITH_WIN32_GUI)
51 add_executable(bnetd WIN32 ${BNETD_SOURCES} ${BNETD_GUI_RESOURCES})
52 else(WITH_WIN32_GUI)
53 add_executable(bnetd ${BNETD_SOURCES} ${BNETD_CONSOLE_RESOURCES})
54 endif(WITH_WIN32_GUI)
55
56 target_link_libraries(bnetd common compat win32 ${NETWORK_LIBRARIES}
57 ${ZLIB_LIBRARIES} ${MYSQL_LIBRARIES} ${SQLITE3_LIBRARIES} ${PGSQL_LIBRARIES} ${ODBC_LIBRARIES} ${LUA_LIBRARIES})
58 install(TARGETS bnetd DESTINATION ${SBINDIR})