diff options
| -rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 992cab995..5dee41abc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -3,14 +3,17 @@ cmake_minimum_required(VERSION 3.6) | |||
| 3 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | 3 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") |
| 4 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") | 4 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") |
| 5 | include(DownloadExternals) | 5 | include(DownloadExternals) |
| 6 | include(CMakeDependentOption) | ||
| 6 | 7 | ||
| 7 | project(yuzu) | 8 | project(yuzu) |
| 8 | 9 | ||
| 10 | # Set bundled sdl2/qt as dependent options. | ||
| 11 | # OFF by default, but if ENABLE_SDL2 and MSVC are true then ON | ||
| 9 | option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) | 12 | option(ENABLE_SDL2 "Enable the SDL2 frontend" ON) |
| 10 | option(YUZU_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" OFF) | 13 | CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_SDL2 "Download bundled SDL2 binaries" ON "ENABLE_SDL2;MSVC" OFF) |
| 11 | 14 | ||
| 12 | option(ENABLE_QT "Enable the Qt frontend" ON) | 15 | option(ENABLE_QT "Enable the Qt frontend" ON) |
| 13 | option(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" OFF) | 16 | CMAKE_DEPENDENT_OPTION(YUZU_USE_BUNDLED_QT "Download bundled Qt binaries" ON "ENABLE_SDL2;MSVC" OFF) |
| 14 | 17 | ||
| 15 | if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) | 18 | if(NOT EXISTS ${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit) |
| 16 | message(STATUS "Copying pre-commit hook") | 19 | message(STATUS "Copying pre-commit hook") |