14 # You should have received a copy of the GNU General Public License |
14 # You should have received a copy of the GNU General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 |
16 |
17 cmake_minimum_required(VERSION 2.6) |
17 cmake_minimum_required(VERSION 2.6) |
18 project(lua C) |
18 project(lua C) |
19 set(PROJECT_VERSION "0.0.5") |
19 set(PROJECT_VERSION "0.0.6") |
20 |
20 |
21 ## User options |
21 ## User options |
22 option(DEBUG "Enable debugging output" ON) |
22 option(DEBUG "Enable debugging output" ON) |
23 option(ENABLE_LUA_ALIAS "Enable aliasing command '/lua' to corresponding '/lua5.x' at module loading time" ON) |
23 option(ENABLE_LUA_ALIAS "Enable aliasing command '/lua' to corresponding '/lua5.x' at module loading time" ON) |
24 option(LLM_CONNECTION_ENABLE "Enable exposing of mcabber loudmouth connection to lua" ON) |
24 option(LLM_CONNECTION_ENABLE "Enable exposing of mcabber loudmouth connection to lua" ON) |
25 option(LLM_LOG_HANDLER "Enable registration of log messages handler for lua-loudmouth library's messages" ON) |
25 option(LLM_LOG_HANDLER "Enable registration of log messages handler for lua-loudmouth library's messages" ON) |
26 option(COMPAT_0_0_4 "Provide global 'main' as alias to 'mcabber' for compatibility with v0.0.4" ON) |
26 option(COMPAT_0_0_4 "Provide global 'main' as alias to 'mcabber' for compatibility with v0.0.4" ON) |
27 set(ML_SOURCE_PRIORITY G_PRIORITY_HIGH_IDLE CACHE STRING "Glib event source priority for timeout and bgread") |
27 set(ML_SOURCE_PRIORITY G_PRIORITY_DEFAULT_IDLE CACHE STRING "Glib event source priority for timeout and bgread") |
28 set(ML_BGREAD_BUFFER 4096 CACHE STRING "Background pipe reading buffer size") |
28 set(ML_BGREAD_BUFFER 4096 CACHE STRING "Background pipe reading buffer size") |
29 set(OPT_MLUA_RC "lua_init_filename" CACHE STRING "Mcabber option name to specify lua initialization file") |
29 set(OPT_MLUA_RC "lua_init_filename" CACHE STRING "Mcabber option name to specify lua initialization file") |
30 set(OPT_MLUA_LM_DEBUG "lua_lm_debug" CACHE STRING "Mcabber option name to enable/disable lua logging of LM messages") |
30 set(OPT_MLUA_LM_DEBUG "lua_lm_debug" CACHE STRING "Mcabber option name to enable/disable lua logging of LM messages") |
31 set(WANT_LUA "AUTO" CACHE STRING "Lua version to use (You'll have to define this with -DWANT_LUA=LUAX.X)") |
31 set(WANT_LUA "AUTO" CACHE STRING "Lua version to use (You'll have to define this with -DWANT_LUA=LUAX.X)") |
32 set_property(CACHE WANT_LUA PROPERTY STRINGS "AUTO" "LUA5.1" "LUA5.2" "LUA5.3") |
32 set_property(CACHE WANT_LUA PROPERTY STRINGS "AUTO" "LUA5.1" "LUA5.2" "LUA5.3") |
33 |
33 |
34 ## Gather information about system |
34 ## Gather information about system |
35 find_package(PkgConfig REQUIRED) |
35 find_package(PkgConfig REQUIRED) |