CMakeLists.txt
This commit is contained in:
@@ -624,7 +624,7 @@ if (NOT CROSSTOOLS)
|
||||
endif()
|
||||
find_package(Lua QUIET)
|
||||
if (LUA_FOUND)
|
||||
message(STATUS "Building PIP with Lua support")
|
||||
message(STATUS "Building PIP with Lua support: Lua ${LUA_VERSION_STRING}")
|
||||
import_version(pip_lua pip)
|
||||
set_deploy_property(pip_lua ${PIP_LIB_TYPE}
|
||||
LABEL "PIP Lua support"
|
||||
@@ -638,6 +638,8 @@ if (NOT CROSSTOOLS)
|
||||
add_library(pip_lua ${PIP_LIB_TYPE} ${CPP_LIB_LUA} ${_RC})
|
||||
target_link_libraries(pip_lua pip ${LUA_LIBRARIES})
|
||||
list(APPEND PIP_LIBS_TARGETS pip_lua)
|
||||
else()
|
||||
message(STATUS "Building PIP without Lua support")
|
||||
endif()
|
||||
|
||||
# Test program
|
||||
|
||||
@@ -24,11 +24,7 @@
|
||||
#ifndef PIP_LUA_H
|
||||
#define PIP_LUA_H
|
||||
|
||||
extern "C" {
|
||||
# include "lua.h"
|
||||
# include "lauxlib.h"
|
||||
# include "lualib.h"
|
||||
}
|
||||
#include "lua.hpp"
|
||||
#include <LuaBridge/LuaBridge.h>
|
||||
#include "pistring.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user