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}")
|
2023-07-09 21:20:42 +00:00
|
|
|
add_library(LUA_INCLUDE_LIB INTERFACE)
|
|
|
|
target_include_directories(LUA_INCLUDE_LIB INTERFACE "${LUA_INCLUDE_DIR}")
|
|
|
|
list(APPEND LUA_LIBRARIES LUA_INCLUDE_LIB)
|
2023-02-19 07:40:29 +00:00
|
|
|
|
|
|
|
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)
|