cmake_modules/FindLua.cmake
author antonc27 <antonc27@mail.ru>
Mon, 19 Oct 2015 03:39:47 +0200
branchios-revival
changeset 11221 e68b3e392091
parent 10725 b01835e9339d
child 12767 5134c07ce32c
permissions -rw-r--r--
- Big refactoring of front-end Settings for both iPhone and iPad: - - Fixed crash when receiving Memory Warning after dismissing Settings on iPhone - - Set ARC flags for MGSplitVCs as it now updated for iOS 8 - - All sub-settings VCs now recreated each time they presented - - SettingsContainerViewController removed - - Other small improvements

# Find liblua
#
# Once done this will define
#  LUA_FOUND - system has Lua
#  LUA_INCLUDE_DIR - the Lua include directory
#  LUA_LIBRARY - The library needed to use Lua
# Copyright (c) 2013, Vittorio Giovara <vittorio.giovara@gmail.com>
#
# Distributed under the OSI-approved BSD License (the "License");
# see accompanying file Copyright.txt for details.
#
# This software is distributed WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# See the License for more information.

include(FindPackageHandleStandardArgs)

find_path(LUA_INCLUDE_DIR lua.h
                          PATHS /usr/include /usr/local/include /usr/pkg/include
                          PATH_SUFFIXES lua5.1 lua51 lua-5.1)
find_library(LUA_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua
                         PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib)

find_package_handle_standard_args(Lua DEFAULT_MSG LUA_LIBRARY LUA_INCLUDE_DIR)
mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)