aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in')
-rw-r--r--vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in b/vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in
new file mode 100644
index 0000000..eec21fd
--- /dev/null
+++ b/vcpkg/ports/lua/vcpkg-cmake-wrapper.cmake.in
@@ -0,0 +1,23 @@
+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)