2023-04-30 14:43:34 +00:00
|
|
|
@PACKAGE_INIT@
|
|
|
|
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/LuaTargets.cmake")
|
|
|
|
|
|
|
|
set_and_check(LUA_INCLUDE_DIR "${PACKAGE_PREFIX_DIR}/include")
|
|
|
|
add_library(Lua::Library ALIAS "Lua::@LUA_EXPORT_LIBRARY@")
|
2023-02-19 07:40:29 +00:00
|
|
|
get_target_property(LUA_CONFIG "Lua::@LUA_EXPORT_LIBRARY@" IMPORTED_CONFIGURATIONS)
|
|
|
|
get_target_property(LUA_LIBRARY "Lua::@LUA_EXPORT_LIBRARY@" "IMPORTED_LOCATION_${LUA_CONFIG}")
|
|
|
|
set(LUA_LIBRARIES "${LUA_LIBRARY}")
|
|
|
|
|
|
|
|
foreach(LIB_NAME @LUA_LINKED_LIBRARIES@)
|
|
|
|
find_library(LIB_LOCATION "${LIB_NAME}")
|
|
|
|
if(NOT LIB_LOCATION)
|
|
|
|
message(FATAL_ERROR "lib${LIB_NAME} not found and is required by lua")
|
|
|
|
else()
|
|
|
|
list(APPEND LUA_LIBRARIES "${LIB_LOCATION}")
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2023-04-30 14:43:34 +00:00
|
|
|
|
|
|
|
check_required_components(Lua)
|