Comments (1)
sol is a CMake project. So the easiest way to use Lua is to use it via CMake.
Then just create CMakeLists.txt
like this:
cmake_minimum_required(VERSION 3.26)
project(Sol2Test LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
add_subdirectory(Lua)
include_directories(Lua/lua-5.4.6/include)
add_subdirectory(sol2)
include_directories(sol2/include)
add_executable(Sol2Test main.cpp)
from sol2.
Related Issues (20)
- Binary/Executable size reduction and the removal of simple_usertype
- No error on argument type mismatch for optional with SOL_SAFE_NUMERICS
- in sol3 an error occurs when working with 64-bit numbers HOT 2
- How to return a Lua table from a C++ function? HOT 1
- Unique table identifier? HOT 2
- Critical: std::shared_ptr wrong type dispatch on MSVC Release HOT 2
- How to return anything from a function in Sol3? HOT 2
- How can I create a usertype but override certain returned properties as raw getter functions? HOT 5
- Accessing Lua self object from a C++ function HOT 4
- Trying to create a new user type HOT 5
- sol::optional does not support copy construction of non trivially copyable types with const modifier
- Create a namespace table with functions HOT 1
- why is get_type return userdata?
- Build with emscripten? HOT 2
- Emscripten/Clang error on setting usertype member variable HOT 4
- Returned Derived Shared Pointer is Nil HOT 1
- AllocConsole and freopen mess up input/output operations HOT 1
- Is it possible to create a user type in Sol3 by ignoring the template arguments? HOT 2
- ADL Customization breaks with `std::vector` and usertype fields
- How to print Error Messages? I am not getting any. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sol2.