Add lua support for cmake.
This commit is contained in:
parent
738ddee7b9
commit
086ef11537
2 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue