mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Refactoring CmakePresets for windows github actions and refactoring README
This commit is contained in:
parent
cd4948c3d7
commit
84887d26ec
6 changed files with 64 additions and 59 deletions
|
|
@ -21,15 +21,9 @@ endif()
|
|||
set(LIBS "")
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
if (MSVC)
|
||||
set(LUA_LIBRARIES "$ENV{VCPKG_ROOT}/packages/luajit_x64-windows/lib/lua51.lib")
|
||||
set(LUA_INCLUDE_DIR "$ENV{VCPKG_ROOT}/packages/luajit_x64-windows/include/luajit")
|
||||
else()
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(OpenAL REQUIRED IMPORTED_TARGET openal)
|
||||
set(LIBS ${LIBS} luajit-5.1 wsock32 ws2_32 pthread PkgConfig::OpenAL -static-libstdc++)
|
||||
message(STATUS ${OPENAL_LIBRARY})
|
||||
endif()
|
||||
set(LUA_LIBRARIES "$ENV{VCPKG_ROOT}/packages/luajit_x64-windows/lib/lua51.lib")
|
||||
set(LUA_INCLUDE_DIR "$ENV{VCPKG_ROOT}/packages/luajit_x64-windows/include/luajit")
|
||||
|
||||
find_package(glfw3 REQUIRED)
|
||||
find_package(glm REQUIRED)
|
||||
find_package(vorbis REQUIRED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue