CMakeLists.txt

This commit is contained in:
2020-07-27 17:54:07 +03:00
parent abbbce1380
commit b153673974
2 changed files with 5 additions and 7 deletions

View File

@@ -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

View File

@@ -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"