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