mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
use built-in CMake version properties
This commit is contained in:
parent
ab5657512e
commit
207d0a520b
@ -9,33 +9,24 @@ set(CMAKE_POLICY_DEFAULT_CMP0069 NEW)
|
|||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
||||||
|
|
||||||
project(melonDS C CXX)
|
project(melonDS
|
||||||
|
VERSION 0.9.4
|
||||||
|
DESCRIPTION "DS emulator, sorta"
|
||||||
|
HOMEPAGE_URL "https://melonds.kuribo64.net"
|
||||||
|
LANGUAGES C CXX)
|
||||||
|
|
||||||
include(CheckSymbolExists)
|
include(CheckSymbolExists)
|
||||||
include(CheckLibraryExists)
|
include(CheckLibraryExists)
|
||||||
include(CMakeDependentOption)
|
include(CMakeDependentOption)
|
||||||
include(CheckIPOSupported)
|
include(CheckIPOSupported)
|
||||||
|
|
||||||
|
|
||||||
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
|
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.15" CACHE STRING "Minimum OS X deployment version")
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD 17)
|
set(CMAKE_CXX_STANDARD 17)
|
||||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||||
|
|
||||||
set(MELONDS_VERSION "0.9.4")
|
add_compile_definitions(MELONDS_VERSION="${melonDS_VERSION}")
|
||||||
add_compile_definitions(MELONDS_VERSION="${MELONDS_VERSION}")
|
|
||||||
string(REPLACE "." ";" VERSION_LIST ${MELONDS_VERSION})
|
|
||||||
# For the melon.rc file used on Windows
|
|
||||||
list(GET VERSION_LIST 0 MELONDS_VERSION_MAJOR)
|
|
||||||
list(GET VERSION_LIST 1 MELONDS_VERSION_MINOR)
|
|
||||||
# Check if melonDS version is three digits or two digits
|
|
||||||
list(LENGTH VERSION_LIST MELONDS_VER_LEN)
|
|
||||||
if (${MELONDS_VER_LEN} GREATER 2)
|
|
||||||
list(GET VERSION_LIST 2 MELONDS_VERSION_PATCH)
|
|
||||||
else()
|
|
||||||
set(MELONDS_VERSION_PATCH 0)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
|
||||||
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
|
set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build." FORCE)
|
||||||
|
@ -13,9 +13,9 @@
|
|||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>${MELONDS_VERSION}</string>
|
<string>${melonDS_VERSION}</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>${MELONDS_VERSION}</string>
|
<string>${melonDS_VERSION}</string>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Licensed under GPLv3</string>
|
<string>Licensed under GPLv3</string>
|
||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
//include version information in .exe, modify these values to match your needs
|
//include version information in .exe, modify these values to match your needs
|
||||||
1 VERSIONINFO
|
1 VERSIONINFO
|
||||||
FILEVERSION ${MELONDS_VERSION_MAJOR},${MELONDS_VERSION_MINOR},${MELONDS_VERSION_PATCH},0
|
FILEVERSION ${melonDS_VERSION_MAJOR},${melonDS_VERSION_MINOR},${melonDS_VERSION_PATCH},0
|
||||||
PRODUCTVERSION ${MELONDS_VERSION_MAJOR},${MELONDS_VERSION_MINOR},${MELONDS_VERSION_PATCH},0
|
PRODUCTVERSION ${melonDS_VERSION_MAJOR},${melonDS_VERSION_MINOR},${melonDS_VERSION_PATCH},0
|
||||||
FILETYPE VFT_APP
|
FILETYPE VFT_APP
|
||||||
{
|
{
|
||||||
BLOCK "StringFileInfo"
|
BLOCK "StringFileInfo"
|
||||||
@ -15,14 +15,14 @@ FILETYPE VFT_APP
|
|||||||
BLOCK "040904E4"
|
BLOCK "040904E4"
|
||||||
{
|
{
|
||||||
VALUE "CompanyName", "Melon Factory of Kuribo64"
|
VALUE "CompanyName", "Melon Factory of Kuribo64"
|
||||||
VALUE "FileVersion", "${MELONDS_VERSION}"
|
VALUE "FileVersion", "${melonDS_VERSION}"
|
||||||
VALUE "FileDescription", "melonDS emulator"
|
VALUE "FileDescription", "melonDS emulator"
|
||||||
VALUE "InternalName", "SDnolem"
|
VALUE "InternalName", "SDnolem"
|
||||||
VALUE "LegalCopyright", "2016-2022 melonDS team"
|
VALUE "LegalCopyright", "2016-2022 melonDS team"
|
||||||
VALUE "LegalTrademarks", ""
|
VALUE "LegalTrademarks", ""
|
||||||
VALUE "OriginalFilename", "zafkflzdasd.exe"
|
VALUE "OriginalFilename", "zafkflzdasd.exe"
|
||||||
VALUE "ProductName", "melonDS"
|
VALUE "ProductName", "melonDS"
|
||||||
VALUE "ProductVersion", "${MELONDS_VERSION}"
|
VALUE "ProductVersion", "${melonDS_VERSION}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
BLOCK "VarFileInfo"
|
BLOCK "VarFileInfo"
|
||||||
|
Loading…
Reference in New Issue
Block a user