mirror of
https://github.com/HarbourMasters/Starship.git
synced 2025-03-15 12:23:59 +03:00
Fixed cmake here too
This commit is contained in:
parent
128acb8997
commit
9ec3886ea8
@ -18,23 +18,13 @@ set(CMAKE_C_STANDARD 11 CACHE STRING "The C standard to use")
|
|||||||
|
|
||||||
# Add a custom module path to locate additional CMake modules
|
# Add a custom module path to locate additional CMake modules
|
||||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
|
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")
|
||||||
include(FindFontconfig)
|
|
||||||
|
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
include(cmake/automate-vcpkg.cmake)
|
include(cmake/automate-vcpkg.cmake)
|
||||||
# Forced to use MSVC
|
|
||||||
set(MSVC ON)
|
|
||||||
|
|
||||||
if(MSVC)
|
|
||||||
set(VCPKG_TRIPLET x64-windows-static)
|
set(VCPKG_TRIPLET x64-windows-static)
|
||||||
set(VCPKG_TARGET_TRIPLET x64-windows-static)
|
set(VCPKG_TARGET_TRIPLET x64-windows-static)
|
||||||
else()
|
|
||||||
set(VCPKG_TRIPLET x64-mingw-static)
|
|
||||||
set(VCPKG_TARGET_TRIPLET x64-mingw-static)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
vcpkg_bootstrap()
|
vcpkg_bootstrap()
|
||||||
vcpkg_install_packages(fontconfig sdl2 zlib bzip2 libzip libpng getopt dirent libusb pthread glew glfw3 nlohmann-json tinyxml2 spdlog)
|
vcpkg_install_packages(zlib bzip2 libzip libpng sdl2 glew glfw3 nlohmann-json tinyxml2 spdlog)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user