chore: ported lua to vcpkg
This commit is contained in:
parent
a16643dbab
commit
3cb5d34ced
3 changed files with 10 additions and 6 deletions
|
@ -14,6 +14,7 @@ include_directories(${Stb_INCLUDE_DIR})
|
|||
# PkgConfig packages
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LUAJIT REQUIRED luajit)
|
||||
link_directories(${LUAJIT_LIBRARY_DIRS})
|
||||
|
||||
# Run autogen
|
||||
file(GLOB_RECURSE AUTOGEN_SOURCES RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}/src" "src/objects/*.h" "src/datatypes/*.h" "src/enum/*.h")
|
||||
|
@ -42,8 +43,9 @@ file(GLOB_RECURSE SOURCES "src/*.cpp" "src/*.h")
|
|||
list(APPEND SOURCES ${AUTOGEN_OUTS})
|
||||
add_library(openblocks STATIC ${SOURCES})
|
||||
set_target_properties(openblocks PROPERTIES OUTPUT_NAME "openblocks")
|
||||
target_link_directories(openblocks PUBLIC ${LUAJIT_LIBRARY_DIRS})
|
||||
target_link_libraries(openblocks ${GLEW_LIBRARIES} ${LUAJIT_LIBRARIES} OpenGL::GL ReactPhysics3D::ReactPhysics3D pugixml::pugixml)
|
||||
target_include_directories(openblocks PUBLIC "src" "../include" ${LUAJIT_INCLUDE_DIR})
|
||||
target_include_directories(openblocks PUBLIC "src" "../include" ${LUAJIT_INCLUDE_DIRS})
|
||||
add_dependencies(openblocks autogen_build autogen)
|
||||
|
||||
# Windows-specific dependencies
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#pragma once
|
||||
extern "C" {
|
||||
#include <luajit-2.1/luajit.h>
|
||||
#include <luajit-2.1/lauxlib.h>
|
||||
#include <luajit-2.1/lualib.h>
|
||||
#include <luajit-2.1/lua.h>
|
||||
#include <luajit.h>
|
||||
#include <lauxlib.h>
|
||||
#include <lualib.h>
|
||||
#include <lua.h>
|
||||
}
|
|
@ -6,7 +6,9 @@
|
|||
{ "name": "pugixml", "version>=": "1.15" },
|
||||
"sdl2",
|
||||
"stb",
|
||||
"reactphysics3d"
|
||||
"reactphysics3d",
|
||||
"pkgconf",
|
||||
"luajit"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue