CMakeLists.txt
changeset 59 19cfaceda6bb
parent 57 37ed3c7ac1b6
child 62 d92358eafead
equal deleted inserted replaced
58:24998d36f3e4 59:19cfaceda6bb
     1 ## Copyright 2009,2011 Myhailo Danylenko
     1 ## Copyright 2009-2016 Myhailo Danylenko
     2 # This file is part of lua-lm
     2 # This file is part of lua-lm
     3 #
     3 #
     4 # lua-lm is free software: you can redistribute it and/or modify
     4 # lua-lm is free software: you can redistribute it and/or modify
     5 # it under the terms of the GNU General Public License as published by
     5 # it under the terms of the GNU General Public License as published by
     6 # the Free Software Foundation, either version 2 of the License, or
     6 # the Free Software Foundation, either version 2 of the License, or
    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-lm C)
    18 project(lua-lm C)
    19 set(PROJECT_VERSION "0.9.3")
    19 set(PROJECT_VERSION "0.9.4")
    20 
    20 
    21 ## User options
    21 ## User options
    22 option(DEBUG      "Enable debugging output" OFF)
    22 option(DEBUG      "Enable debugging output" OFF)
    23 option(WANT_LUA52 "Force Lua 5.2 usage"     OFF)
    23 option(WANT_LUA52 "Force Lua 5.2 usage"     OFF)
    24 set(TEST_USER        "test@jabber.org" CACHE STRING "Testing: Your jabber account name")
    24 set(TEST_USER        "test@jabber.org" CACHE STRING "Testing: Your jabber account name")
    55 set(CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS})
    55 set(CMAKE_REQUIRED_INCLUDES ${LM_INCLUDE_DIRS})
    56 set(CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES})
    56 set(CMAKE_REQUIRED_LIBRARIES ${LM_LIBRARIES})
    57 set(CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS})
    57 set(CMAKE_REQUIRED_FLAGS ${LM_LDFLAGS} ${LM_CFLAGS})
    58 check_function_exists(lm_connection_get_keep_alive_rate HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE)
    58 check_function_exists(lm_connection_get_keep_alive_rate HAVE_LM_CONNECTION_GET_KEEP_ALIVE_RATE)
    59 check_function_exists(lm_connection_unregister_reply_handler HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER)
    59 check_function_exists(lm_connection_unregister_reply_handler HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER)
       
    60 check_function_exists(lm_ssl_set_ca HAVE_LM_SSL_SET_CA)
       
    61 check_function_exists(lm_ssl_set_cipher_list HAVE_LM_SSL_SET_CIPHER_LIST)
    60 find_program(DOCGEN_EXECUTABLE NAMES docgen.pl docgen DOC "Docgen documentation generator script (optional)")
    62 find_program(DOCGEN_EXECUTABLE NAMES docgen.pl docgen DOC "Docgen documentation generator script (optional)")
    61 # (this should be before targets definitions)
    63 # (this should be before targets definitions)
    62 link_directories(${LUA_LIBRARY_DIRS} ${GLIB_LIBRARY_DIRS} ${LM_LIBRARY_DIRS})
    64 link_directories(${LUA_LIBRARY_DIRS} ${GLIB_LIBRARY_DIRS} ${LM_LIBRARY_DIRS})
    63 
    65 
    64 ## Define targets
    66 ## Define targets