Add lua support for cmake.

This commit is contained in:
Mark de Wever 2009-03-22 21:30:53 +00:00
parent 738ddee7b9
commit 086ef11537
2 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# find all deps needed, pkgconfig is needed to find pangocairo
find_package( SDL 1.2.7 REQUIRED )
find_package( Boost 1.33 REQUIRED COMPONENTS iostreams regex )
find_package( Lua51 REQUIRED)
find_package( PkgConfig REQUIRED )
# yes, gettext is *required* even when NLS is deactivated (this is to compile
# src/gettext.cpp since it includes libintl.h)

View file

@ -1,5 +1,6 @@
## some includes ##
include_directories( ${Boost_INCLUDE_DIR} )
include_directories( ${LUA_INCLUDE_DIR} )
include_directories( ${SDL_INCLUDE_DIR} )
include_directories( ${PANGOCAIRO_INCLUDE_DIRS} )
include_directories( ${FONTCONFIG_INCLUDE_DIRS} )
@ -41,6 +42,7 @@ set( game-external-libs
${SDLTTF_LIBRARY}
${PANGOCAIRO_LDFLAGS}
${FONTCONFIG_LDFLAGS}
${LUA_LIBRARIES}
)
set( server-external-libs
@ -293,6 +295,7 @@ SET(wesnoth-main_SRC
portrait.cpp
replay.cpp
replay_controller.cpp
scripting/lua.cpp
sha1.cpp
settings.cpp
statistics.cpp