Added include directory to LUA_LIBRARIES

This commit is contained in:
Walter Schell 2023-07-09 17:17:19 -04:00
parent a7bfd709da
commit c80acc1835

View File

@ -7,6 +7,9 @@ add_library(Lua::Library ALIAS "Lua::@LUA_EXPORT_LIBRARY@")
get_target_property(LUA_CONFIG "Lua::@LUA_EXPORT_LIBRARY@" IMPORTED_CONFIGURATIONS) get_target_property(LUA_CONFIG "Lua::@LUA_EXPORT_LIBRARY@" IMPORTED_CONFIGURATIONS)
get_target_property(LUA_LIBRARY "Lua::@LUA_EXPORT_LIBRARY@" "IMPORTED_LOCATION_${LUA_CONFIG}") get_target_property(LUA_LIBRARY "Lua::@LUA_EXPORT_LIBRARY@" "IMPORTED_LOCATION_${LUA_CONFIG}")
set(LUA_LIBRARIES "${LUA_LIBRARY}") set(LUA_LIBRARIES "${LUA_LIBRARY}")
add_library(Lua::Includes INTERFACE)
target_include_directories(Lua::Includes INTERFACE "${LUA_INCLUDE_DIR}")
list(APPEND LUA_LIBRARIES Lua::Includes)
foreach(LIB_NAME @LUA_LINKED_LIBRARIES@) foreach(LIB_NAME @LUA_LINKED_LIBRARIES@)
find_library(LIB_LOCATION "${LIB_NAME}") find_library(LIB_LOCATION "${LIB_NAME}")