diff options
author | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2019-05-04 15:32:12 +0200 |
---|---|---|
committer | Nadia Holmquist Pedersen <nadia@nhp.sh> | 2019-05-04 15:32:12 +0200 |
commit | 56969ba0d1d8b8240a5ed16d421a97945877aed8 (patch) | |
tree | 579c4e537f87dfb6354e20d2ec7f9e1493b4e219 | |
parent | 5d3462b42c4402383d0531537eb46ce32b8c7e94 (diff) |
Change CMake minimum version requirement to the one shipped with Ubuntu LTS
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ba4ab3c..a7dc858 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |