Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb95db1dda | ||
|
|
3a803550ea |
+10
-10
@@ -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,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 */
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <hidapi/hidapi.h>
|
||||
|
||||
#include <lua.h>
|
||||
#include "lua.h"
|
||||
|
||||
#include "usbdevice.h"
|
||||
#include "sounddevice.h"
|
||||
|
||||
Reference in New Issue
Block a user