melonds-ds/CMakeLists.txt
Jesse Talavera-Greenberg 39c63f2ea8 Fix the glib stub
2023-08-06 15:30:17 -04:00

36 lines
1002 B
CMake

cmake_minimum_required(VERSION 3.17.5)
cmake_policy(VERSION 3.17.5)
message(STATUS "Using CMake ${CMAKE_VERSION}")
if (CMAKE_MESSAGE_LOG_LEVEL)
message(STATUS "Message log level is set to ${CMAKE_MESSAGE_LOG_LEVEL}")
endif ()
include(cmake/ParseLibretroInfo.cmake)
project("${MELONDSDS_INFO_corename}"
VERSION "${MELONDSDS_INFO_display_version}"
DESCRIPTION "${MELONDSDS_INFO_description}"
HOMEPAGE_URL "https://melonds.kuribo64.net"
LANGUAGES C CXX)
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
include(CheckSymbolExists)
include(CheckIncludeFile)
include(CheckIncludeFiles)
include(CheckTypeSize)
include(FetchContent)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
find_package(Git REQUIRED)
option(TRACY_ENABLE "Build with Tracy support." OFF)
include(cmake/utils.cmake)
include(cmake/FetchDependencies.cmake)
include(cmake/ConfigureFeatures.cmake)
include(cmake/ConfigureDependencies.cmake)
add_subdirectory(src/libretro)
dump_cmake_variables()