mirror of
https://github.com/edubart/otclient.git
synced 2025-04-29 09:19:19 +02:00

* Removed Ubuntu Clang workflow * Removed FindCXX.cmake (in favor of native feature) * Added support for building Windows binaries with CMake when using MSVC * Cleaned up a number of Find*.cmake modules
19 lines
760 B
CMake
19 lines
760 B
CMake
# Try to find the lua library
|
|
# LUA_FOUND - system has lua
|
|
# LUA_INCLUDE_DIR - the lua include directory
|
|
# LUA_LIBRARY - the lua library
|
|
# LUA_LIBRARIES - the lua library and it's dependencies
|
|
|
|
FIND_PATH(LUA_INCLUDE_DIR NAMES lua.h PATH_SUFFIXES lua51 lua5-1 lua5.1 lua)
|
|
FIND_LIBRARY(LUA_LIBRARY NAMES)
|
|
SET(_LUA_STATIC_LIBS lua51.a lua5.1.a lua-5.1.a lua.a)
|
|
SET(_LUA_SHARED_LIBS lua51 lua5.1 lua-5.1 lua)
|
|
IF(USE_STATIC_LIBS)
|
|
FIND_LIBRARY(LUA_LIBRARY NAMES ${_LUA_STATIC_LIBS} ${_LUA_SHARED_LIBS})
|
|
ELSE()
|
|
FIND_LIBRARY(LUA_LIBRARY NAMES ${_LUA_SHARED_LIBS} ${_LUA_STATIC_LIBS})
|
|
ENDIF()
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Lua DEFAULT_MSG LUA_LIBRARY LUA_INCLUDE_DIR)
|
|
MARK_AS_ADVANCED(LUA_LIBRARY LUA_INCLUDE_DIR)
|