pineapple/externals/vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in
2022-07-23 03:01:36 +02:00

23 lines
602 B
CMake
Executable file

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)