mirror of
https://github.com/HarbourMasters/SpaghettiKart
synced 2026-09-04 02:49:38 -04:00
4c24ae2bc2
* some start of refactor * Update SetFlags.cmake * Update SetCmakeVar.cmake * Update SetFlags.cmake * Fix error int-convertion * more refactor * clean up include and source file * fix link of lib * fix a warning * fix include in src/actors * fix include in src/debug * fix include in src/ending * fix include in src/engine/actors * fix include in src/engine/cameras * fix include in src/engine/editor * fix include in src/engine/objects * fix include in src/engine/tracks * fix include in src/port/ui * fix include in src/racing * fix include in src/engine/vehicles * fix include in subfolder of src/engine * fix include in src/engine * fix include in src/enhancements * fix include in src * fix switch * invert common and findlib * Update SetFlags.cmake * clean up some workflow * some splification * Update build.sh * Update Game.h * add header back * Delete test_check.cmake * continue * Update common.cmake
31 lines
889 B
CMake
31 lines
889 B
CMake
include(cmake/automate-vcpkg.cmake)
|
|
|
|
if(WIN32)
|
|
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
set(VCPKG_TRIPLET x64-windows-static)
|
|
set(VCPKG_TARGET_TRIPLET x64-windows-static)
|
|
else()
|
|
set(VCPKG_TRIPLET x86-windows-static)
|
|
set(VCPKG_TARGET_TRIPLET x86-windows-static)
|
|
endif()
|
|
|
|
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_STARTUP_PROJECT ${PROJECT_NAME})
|
|
set_property(DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTY VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
|
elseif(APPLE)
|
|
if(CMAKE_SYSTEM_PROCESSOR MATCHES "arm64|aarch64")
|
|
set(VCPKG_TRIPLET arm64-osx)
|
|
set(VCPKG_TARGET_TRIPLET arm64-osx)
|
|
else()
|
|
set(VCPKG_TRIPLET x64-osx)
|
|
set(VCPKG_TARGET_TRIPLET x64-osx)
|
|
endif()
|
|
elseif(UNIX AND NOT APPLE)
|
|
set(VCPKG_TRIPLET x64-linux)
|
|
set(VCPKG_TARGET_TRIPLET x64-linux)
|
|
endif()
|
|
|
|
vcpkg_bootstrap()
|
|
# install package from vcpkg.json
|
|
vcpkg_install_packages()
|
|
|