mirror of
https://github.com/walterschell/Lua.git
synced 2024-11-10 01:01:46 +00:00
Added include directory to LUA_LIBRARIES
This commit is contained in:
parent
a7bfd709da
commit
c80acc1835
@ -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}")
|
||||||
|
Loading…
Reference in New Issue
Block a user