mail[Wesnoth-commits] r34052 - in /trunk: CMakeLists.txt src/CMakeLists.txt


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by koraq on March 22, 2009 - 22:30:
Author: mordante
Date: Sun Mar 22 22:30:53 2009
New Revision: 34052

URL: http://svn.gna.org/viewcvs/wesnoth?rev=34052&view=rev
Log:
Add lua support for cmake.

Modified:
    trunk/CMakeLists.txt
    trunk/src/CMakeLists.txt

Modified: trunk/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/CMakeLists.txt?rev=34052&r1=34051&r2=34052&view=diff
==============================================================================
--- trunk/CMakeLists.txt (original)
+++ trunk/CMakeLists.txt Sun Mar 22 22:30:53 2009
@@ -25,6 +25,7 @@
 # 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)

Modified: trunk/src/CMakeLists.txt
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/CMakeLists.txt?rev=34052&r1=34051&r2=34052&view=diff
==============================================================================
--- trunk/src/CMakeLists.txt (original)
+++ trunk/src/CMakeLists.txt Sun Mar 22 22:30:53 2009
@@ -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 @@
     ${SDLTTF_LIBRARY}
     ${PANGOCAIRO_LDFLAGS}
     ${FONTCONFIG_LDFLAGS}
+    ${LUA_LIBRARIES}
 )
 
 set( server-external-libs
@@ -293,6 +295,7 @@
     portrait.cpp
     replay.cpp
     replay_controller.cpp
+    scripting/lua.cpp
     sha1.cpp
     settings.cpp
     statistics.cpp




Related Messages


Powered by MHonArc, Updated Sun Mar 22 22:40:43 2009