yuzu/externals/vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in

24 lines
602 B
CMake
Raw Normal View History

2022-07-23 05:01:36 +04:00
set(REQUIRES )
foreach(ARG IN_LISTS ${ARGS})
if (ARG STREQUAL "REQUIRED")
set(REQUIRES "REQUIRED")
endif()
endforeach()
_find_package(unofficial-lua CONFIG ${REQUIRES})
if (@COMPILE_AS_CPP@)
_find_package(unofficial-lua-cpp CONFIG ${REQUIRES})
endif()
get_filename_component(LUA_INCLUDE_DIR "${CMAKE_CURRENT_LIST_DIR}" PATH)
get_filename_component(LUA_INCLUDE_DIR "${LUA_INCLUDE_DIR}" PATH)
set(LUA_INCLUDE_DIR ${LUA_INCLUDE_DIR}/include)
list(APPEND LUA_LIBRARIES lua)
if (TARGET lua-cpp)
list(APPEND LUA_LIBRARIES lua-cpp)
endif()
set(LUA_FOUND 1)