CMakeLists.txt
changeset 95 f2f4c7810a72
parent 93 0a10228296c1
child 96 270ce1cfc823
equal deleted inserted replaced
94:0379139a2003 95:f2f4c7810a72
    15 # You should have received a copy of the GNU General Public License
    15 # You should have received a copy of the GNU General Public License
    16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    16 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 
    17 
    18 cmake_minimum_required(VERSION 2.6)
    18 cmake_minimum_required(VERSION 2.6)
    19 project(lua C)
    19 project(lua C)
       
    20 set(PROJECT_VERSION "0.0.1")
    20 
    21 
    21 ## User options
    22 ## User options
    22 option(DEBUG "Enable debugging output" ON)
    23 option(DEBUG "Enable debugging output" ON)
    23 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)
    24 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)
    59 	add_custom_target(doc ALL DEPENDS ${lua_BINARY_DIR}/lua.html)
    60 	add_custom_target(doc ALL DEPENDS ${lua_BINARY_DIR}/lua.html)
    60 endif()
    61 endif()
    61 
    62 
    62 ## Packaging information
    63 ## Packaging information
    63 set(CPACK_PACKAGE_NAME libmcabber-lua)
    64 set(CPACK_PACKAGE_NAME libmcabber-lua)
    64 set(CPACK_PACKAGE_VERSION "0.0.1")
    65 set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION})
    65 set(CPACK_PACKAGE_VENDOR "IsBear")
    66 set(CPACK_PACKAGE_VENDOR "IsBear")
    66 set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
    67 set(CPACK_PACKAGE_CONTACT "Myhailo Danylenko <isbear@ukrpost.net>")
    67 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Mcabber lua module")
    68 set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Mcabber lua module")
    68 set(CPACK_PACKAGE_DESCRIPTION_FILE ${lua_SOURCE_DIR}/README)
    69 set(CPACK_PACKAGE_DESCRIPTION_FILE ${lua_SOURCE_DIR}/README)
    69 set(CPACK_RESOURCE_FILE_LICENSE ${lua_SOURCE_DIR}/COPYING)
    70 set(CPACK_RESOURCE_FILE_LICENSE ${lua_SOURCE_DIR}/COPYING)