diff options
-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) |