[Bug Fix] Fix CMakeLists.txt so compile works. (#1387)

* [Bug Fix] Fix CMakeLists.txt so compile works.

* Typo.

* Add ifdefs to bot files so they're not used unless bots are enabled.
This commit is contained in:
Alex 2021-06-11 23:52:47 -04:00 committed by GitHub
parent 6e61f6d0ba
commit cc46297b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 1 deletions

View File

@ -45,6 +45,7 @@ SET(zone_sources
horse.cpp
inventory.cpp
loottables.cpp
lua_bot.cpp
lua_bit.cpp
lua_corpse.cpp
lua_client.cpp
@ -102,6 +103,7 @@ SET(zone_sources
pathfinder_nav_mesh.cpp
pathfinder_null.cpp
pathing.cpp
perl_bot.cpp
perl_client.cpp
perl_doors.cpp
perl_entity.cpp
@ -195,6 +197,7 @@ SET(zone_headers
hate_list.h
heal_rotation.h
horse.h
lua_bot.h
lua_bit.h
lua_client.h
lua_corpse.h

View File

@ -1,3 +1,4 @@
#ifdef BOTS
#ifdef LUA_EQEMU
#include "lua.hpp"
@ -11,3 +12,4 @@ luabind::scope lua_register_bot() {
}
#endif
#endif

View File

@ -1,3 +1,4 @@
#ifdef BOTS
#ifndef EQEMU_LUA_BOT_H
#define EQEMU_LUA_BOT_H
#ifdef LUA_EQEMU
@ -28,3 +29,4 @@ public:
#endif
#endif
#endif

View File

@ -13,6 +13,7 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifdef BOTS
#include "../common/features.h"
#ifdef EMBPERL_XS_CLASSES
#include "../common/global_define.h"
@ -81,4 +82,5 @@ XS(boot_Bot)
XSRETURN_YES;
}
#endif //EMBPERL_XS_CLASSES
#endif //EMBPERL_XS_CLASSES
#endif //BOTS