amiberry/CMakeLists.txt
Dimitris Panokostas f967df0ace
Revert "refactor: bump CMake requirement to 3.27 so we can debug it"
This reverts commit 0e28e2bb1aa51c33fc4b172994e2ca4d06709276.
2024-12-19 15:52:53 +01:00

45 lines
1.4 KiB
CMake

cmake_minimum_required(VERSION 3.16)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
message(FATAL_ERROR "Prevented in-tree build. Please create a build directory outside of the amiberry source code and run \"cmake -S ${CMAKE_SOURCE_DIR} -B .\" from there")
endif ()
# Use libgpiod to control GPIO LEDs?
option(USE_GPIOD "Use GPIOD" OFF)
# Use DBUS to control the emulator?
option(USE_DBUS "Use DBus" OFF)
# Use OpenGL for rendering?
option(USE_OPENGL "Use OpenGL" OFF)
# Enable Link Time Optimization?
option(WITH_LTO "Enable Link Time Optimization" OFF)
## Determine proper semantic version
set(VERSION_MAJOR "7")
set(VERSION_MINOR "0")
set(VERSION_PATCH "0")
set(VERSION_PRE_RELEASE "RC1")
set(VERSION "${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}")
project(amiberry
VERSION ${VERSION}
LANGUAGES C CXX
DESCRIPTION "Optimized Amiga emulator for various platforms"
HOMEPAGE_URL "https://amiberry.com"
)
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
set(PROJECT_NAME "Amiberry")
set(CMAKE_PROJECT_NAME "Amiberry")
endif ()
set(PROJECT_COMPANY_NAME "BlitterStudio")
set(PROJECT_COMPANY_NAMESPACE "com.blitterstudio") # Reverse domain name notation
include(GNUInstallDirs)
include(cmake/StandardProjectSettings.cmake)
include(cmake/Dependencies.cmake)
include(cmake/SourceFiles.cmake)
add_subdirectory(packaging)