Compare commits

...
2 Commits
Author SHA1 Message Date
Paul Dino Jones eb95db1dda rename lua in headers 2026-05-25 23:13:53 -04:00
Paul Dino Jones 3a803550ea add more lua variables back to cmake 2026-05-25 23:11:04 -04:00
3 changed files with 13 additions and 13 deletions
+10 -10
View File
@@ -19,16 +19,16 @@ set(LIBXML_INCLUDE_DIR /usr/include/libxml2)
FIND_PACKAGE(Lua)
#FIND_PACKAGE(Lua 5.4 REQUIRED EXACT)
#if(Lua_FOUND AND NOT TARGET Lua::Lua)
# add_library(Lua::Lua INTERFACE IMPORTED)
# set_target_properties(
# Lua::Lua
# PROPERTIES
# INTERFACE_INCLUDE_DIRECTORIES "${LUA_INCLUDE_DIR}"
# INTERFACE_LINK_LIBRARIES "${LUA_LIBRARIES}"
# )
#
#endif()
if(Lua_FOUND AND NOT TARGET Lua::Lua)
add_library(Lua::Lua INTERFACE IMPORTED)
set_target_properties(
Lua::Lua
PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${LUA_INCLUDE_DIR}"
INTERFACE_LINK_LIBRARIES "${LUA_LIBRARIES}"
)
endif()
message("Lua ${Lua_VERSION} found")
if (Lua_VERSION VERSION_GREATER_EQUAL "5.5.0")
add_compile_definitions(USE_LUA_55)
+2 -2
View File
@@ -2,8 +2,8 @@
#define _ARDUINOLEDLUA_H
//#include <lua.h>
#include <lauxlib.h>
#include <lualib.h>
#include "lauxlib.h"
#include "lualib.h"
#ifdef USE_LUA_55
/* open all libraries */
+1 -1
View File
@@ -4,7 +4,7 @@
#include <stdbool.h>
#include <hidapi/hidapi.h>
#include <lua.h>
#include "lua.h"
#include "usbdevice.h"
#include "sounddevice.h"