summaryrefslogtreecommitdiff
path: root/accel-pppd/lua/CMakeLists.txt
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2017-10-13 23:59:50 +0300
committerDmitry Kozlov <xeb@mail.ru>2017-10-13 23:59:55 +0300
commitec3d2f2942172d79fe74a01f5c980873e01ff5dd (patch)
tree0ded3c0a34324ecd67eb263fd47758cf8fef632e /accel-pppd/lua/CMakeLists.txt
parent0ce5c789bc6c27852c9efeb1d7ab84aa44b551a5 (diff)
downloadaccel-ppp-ec3d2f2942172d79fe74a01f5c980873e01ff5dd.tar.gz
accel-ppp-ec3d2f2942172d79fe74a01f5c980873e01ff5dd.zip
improved lua support
Implemented support for lua 5.2/5.3. To build accel-ppp with exact lua version pass it in -DLUA=x.y, for example -DLUA=5.2 (cmake 3.0 is required for this). Old style -DLUA=TRUE supports only 5.1 and does not require cmake 3.0. Also extra lua modules (lua_lpack, lua_bit) took out into separated library luasupp.
Diffstat (limited to 'accel-pppd/lua/CMakeLists.txt')
-rw-r--r--accel-pppd/lua/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/accel-pppd/lua/CMakeLists.txt b/accel-pppd/lua/CMakeLists.txt
new file mode 100644
index 00000000..699cfb7b
--- /dev/null
+++ b/accel-pppd/lua/CMakeLists.txt
@@ -0,0 +1,12 @@
+INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR})
+
+SET(sources
+ lua_lpack.c
+ lua_bit.c
+)
+
+ADD_LIBRARY(luasupp SHARED ${sources})
+TARGET_LINK_LIBRARIES(luasupp ${LUA_LIBRARIES})
+
+INSTALL(TARGETS luasupp LIBRARY DESTINATION lib${LIB_SUFFIX}/accel-ppp)