diff options
Diffstat (limited to '')
| -rw-r--r-- | CMakeLists.txt | 9 | ||||
| -rw-r--r-- | externals/CMakeLists.txt | 3 |
2 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 658a2816b..f91ba950a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -3,12 +3,14 @@ | |||
| 3 | 3 | ||
| 4 | cmake_minimum_required(VERSION 3.22) | 4 | cmake_minimum_required(VERSION 3.22) |
| 5 | 5 | ||
| 6 | project(yuzu) | ||
| 7 | |||
| 6 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") | 8 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") |
| 7 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") | 9 | list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") |
| 10 | |||
| 8 | include(DownloadExternals) | 11 | include(DownloadExternals) |
| 9 | include(CMakeDependentOption) | 12 | include(CMakeDependentOption) |
| 10 | 13 | include(CTest) | |
| 11 | project(yuzu) | ||
| 12 | 14 | ||
| 13 | # Set bundled sdl2/qt as dependent options. | 15 | # Set bundled sdl2/qt as dependent options. |
| 14 | # OFF by default, but if ENABLE_SDL2 and MSVC are true then ON | 16 | # OFF by default, but if ENABLE_SDL2 and MSVC are true then ON |
| @@ -42,7 +44,7 @@ option(ENABLE_CUBEB "Enables the cubeb audio backend" ON) | |||
| 42 | 44 | ||
| 43 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) | 45 | option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) |
| 44 | 46 | ||
| 45 | option(YUZU_TESTS "Compile tests" ON) | 47 | option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}") |
| 46 | 48 | ||
| 47 | option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) | 49 | option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) |
| 48 | 50 | ||
| @@ -606,7 +608,6 @@ if (YUZU_USE_FASTER_LD AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | |||
| 606 | endif() | 608 | endif() |
| 607 | endif() | 609 | endif() |
| 608 | 610 | ||
| 609 | enable_testing() | ||
| 610 | add_subdirectory(externals) | 611 | add_subdirectory(externals) |
| 611 | add_subdirectory(src) | 612 | add_subdirectory(src) |
| 612 | 613 | ||
diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt index dfd40cba6..291ef96ee 100644 --- a/externals/CMakeLists.txt +++ b/externals/CMakeLists.txt | |||
| @@ -5,6 +5,9 @@ | |||
| 5 | # some of its variables, which is only possible in 3.13+ | 5 | # some of its variables, which is only possible in 3.13+ |
| 6 | set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) | 6 | set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) |
| 7 | 7 | ||
| 8 | # Disable tests in all externals supporting the standard option name | ||
| 9 | set(BUILD_TESTING OFF) | ||
| 10 | |||
| 8 | # xbyak | 11 | # xbyak |
| 9 | if ((ARCHITECTURE_x86 OR ARCHITECTURE_x86_64) AND NOT TARGET xbyak::xbyak) | 12 | if ((ARCHITECTURE_x86 OR ARCHITECTURE_x86_64) AND NOT TARGET xbyak::xbyak) |
| 10 | add_subdirectory(xbyak EXCLUDE_FROM_ALL) | 13 | add_subdirectory(xbyak EXCLUDE_FROM_ALL) |