Refactoring CmakePresets for windows github actions and refactoring README

This commit is contained in:
Stepanov Igor
2024-12-20 17:16:31 +03:00
parent cd4948c3d7
commit 84887d26ec
6 changed files with 64 additions and 59 deletions
+3 -9
View File
@@ -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)