cmake/Modules/FindLua51.cmake
author Tero Marttila <terom@fixme.fi>
Sun, 03 May 2009 17:16:30 +0300
branchnew-transport
changeset 164 7847a7c3b678
parent 93 42ade8285570
permissions -rw-r--r--
remove ERR_READ_EOF, add more general errors, add missing _general_error_desc, and have error_name return for SUCCESS
# Find lua 5.1
# Once done, this will define:
#
#   Lua51_FOUND
#   Lua51_INCLUDE_DIRS
#   Lua51_LIBRARIES
#
include (LibFindMacros)

# include dir
find_path (Lua51_INCLUDE_DIR
    NAMES "lua5.1/lua.h"
)

# library
find_library (Lua51_LIBRARY
    NAMES "lua5.1"
)

# set the external vars
set (Lua51_PROCESS_INCLUDES Lua51_INCLUDE_DIR)
set (Lua51_PROCESS_LIBS Lua51_LIBRARY)
libfind_process (Lua51)