melonds-ds/CMakeLists.txt

36 lines
1002 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 3.17.5)
2023-03-06 19:19:45 +00:00
cmake_policy(VERSION 3.17.5)
message(STATUS "Using CMake ${CMAKE_VERSION}")
2023-06-24 19:58:45 +00:00
if (CMAKE_MESSAGE_LOG_LEVEL)
message(STATUS "Message log level is set to ${CMAKE_MESSAGE_LOG_LEVEL}")
endif ()
2023-03-06 19:19:45 +00:00
include(cmake/ParseLibretroInfo.cmake)
project("${MELONDSDS_INFO_corename}"
VERSION "${MELONDSDS_INFO_display_version}"
DESCRIPTION "${MELONDSDS_INFO_description}"
2023-03-06 19:19:45 +00:00
HOMEPAGE_URL "https://melonds.kuribo64.net"
LANGUAGES C CXX)
2023-08-06 16:03:22 +00:00
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
2023-06-24 01:07:45 +00:00
include(CheckSymbolExists)
2023-06-24 16:50:00 +00:00
include(CheckIncludeFile)
include(CheckIncludeFiles)
2023-08-06 19:30:17 +00:00
include(CheckTypeSize)
2023-03-06 19:19:45 +00:00
include(FetchContent)
2023-07-10 18:44:24 +00:00
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
2023-03-06 19:19:45 +00:00
2023-08-06 16:02:24 +00:00
find_package(Git REQUIRED)
2023-03-06 19:19:45 +00:00
option(TRACY_ENABLE "Build with Tracy support." OFF)
include(cmake/utils.cmake)
2023-07-10 18:44:24 +00:00
include(cmake/FetchDependencies.cmake)
include(cmake/ConfigureFeatures.cmake)
include(cmake/ConfigureDependencies.cmake)
2023-03-06 22:45:53 +00:00
add_subdirectory(src/libretro)
dump_cmake_variables()