summaryrefslogtreecommitdiff
path: root/external/lua-5.3.3/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'external/lua-5.3.3/CMakeLists.txt')
-rw-r--r--external/lua-5.3.3/CMakeLists.txt55
1 files changed, 55 insertions, 0 deletions
diff --git a/external/lua-5.3.3/CMakeLists.txt b/external/lua-5.3.3/CMakeLists.txt
new file mode 100644
index 0000000..6de86af
--- /dev/null
+++ b/external/lua-5.3.3/CMakeLists.txt
@@ -0,0 +1,55 @@
+
+add_library( lua STATIC
+ src/lapi.c
+ src/lcode.c
+ src/lctype.c
+ src/ldebug.c
+ src/ldo.c
+ src/ldump.c
+ src/lfunc.c
+ src/lgc.c
+ src/llex.c
+ src/lmem.c
+ src/lobject.c
+ src/lopcodes.c
+ src/lparser.c
+ src/lstate.c
+ src/lstring.c
+ src/ltable.c
+ src/ltm.c
+ src/lundump.c
+ src/lvm.c
+ src/lzio.c
+ src/lauxlib.c
+ src/lbaselib.c
+ src/lbitlib.c
+ src/lcorolib.c
+ src/ldblib.c
+ src/liolib.c
+ src/lmathlib.c
+ src/loslib.c
+ src/lstrlib.c
+ src/ltablib.c
+ src/lutf8lib.c
+ src/loadlib.c
+ src/linit.c
+ )
+
+if(APPLE)
+ add_definitions(-DLUA_USE_MACOSX)
+endif(APPLE)
+
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
+ add_definitions(-DLUA_USE_LINUX)
+endif()
+
+add_definitions (
+ -DLUA_COMPAT_5_2
+ -DNDEBUG
+ -mfpmath=sse
+ -ffast-math
+ )
+
+include_directories (
+ include
+ )