Change CMake minimum version requirement to the one shipped with Ubuntu LTS

This commit is contained in:
Nadia Holmquist Pedersen 2019-05-04 15:32:12 +02:00
parent 5d3462b42c
commit 56969ba0d1
1 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.10.2)
cmake_policy(VERSION 3.13)
cmake_policy(VERSION 3.10.2)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
@ -22,6 +22,7 @@ if(ENABLE_LTO)
endif()
option(BUILD_LIBUI "Build libui frontend" ON)
option(BUILD_SDL "Build SDL2 frontend" OFF)
add_subdirectory(src)
@ -29,6 +30,10 @@ if (BUILD_LIBUI)
add_subdirectory(src/libui_sdl)
endif()
if (BUILD_SDL)
add_subdirectory(src/sdl)
endif()
configure_file(
${CMAKE_SOURCE_DIR}/romlist.bin
${CMAKE_BINARY_DIR}/romlist.bin COPYONLY)