Closed Intervel closed 1 year ago
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)
what macro to use?
i download lua from the official.
https://luabinaries.sourceforge.net/download.html i chose Windows x64 DLL and Includes(MingW-w64 6 Built)
got this binary dll
no lib file, only dll.