Lua/lua-5.4.4/LuaConfig.cmake.in
melonedo 6f99e2d952 Adapt to suggestions
- build shared and/or static version controlled by `LUA_ENABLE_SHARED/STATIC`
- add alias Lua::Lib which is one of above, controlled by `BUILD_SHARED_LIBS`
- exclude the unneeded version if not toplevel
2022-04-29 21:23:19 +08:00

10 lines
252 B
CMake

@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/LuaTargets.cmake")
set_and_check(LUA_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
add_library(Lua::Lib ALIAS "Lua::@LUA_EXPORT_LIBRARY@")
set(LUA_LIBRARIES "Lua::Lib")
check_required_components(Lua)