mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-12 17:58:29 +12:00
Added mechanism for stable/experimental/dev version
-DEXPERIMENTAL_VERSION can be used to specify (non-zero) experimental version. It will show as LEAD.MAJOR-MINOR. It will also set the (experimental) suffix in Cemu's name. If not specified, the suffix will be empty and the version shows as LEAD.MAJOR If PUBLIC_RELEASE is not set the suffix will be (dev) Also updated the auto-updater to use a new API that supports our github releases
This commit is contained in:
parent
527ee3aea5
commit
ae6e6f9f79
13 changed files with 150 additions and 93 deletions
|
@ -2,12 +2,17 @@ cmake_minimum_required(VERSION 3.21.1)
|
|||
|
||||
option(PUBLIC_RELEASE "Compile with debug asserts disabled and no console" OFF)
|
||||
option(ENABLE_VCPKG "Enable the vcpkg package manager" ON)
|
||||
set(EXPERIMENTAL_VERSION "" CACHE STRING "") # used by CI script to set experimental version
|
||||
|
||||
if (PUBLIC_RELEASE)
|
||||
add_definitions(-DPUBLIC_RELEASE)
|
||||
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) # enable LTO
|
||||
endif()
|
||||
|
||||
if (EXPERIMENTAL_VERSION)
|
||||
add_definitions(-DEMULATOR_VERSION_MINOR=${EXPERIMENTAL_VERSION})
|
||||
endif()
|
||||
|
||||
if (ENABLE_VCPKG)
|
||||
set(VCPKG_OVERLAY_PORTS "${CMAKE_CURRENT_LIST_DIR}/dependencies/vcpkg_overlay_ports")
|
||||
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/dependencies/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue