summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorGravatar Alexandre Bouvier2023-01-05 05:00:44 +0100
committerGravatar Alexandre Bouvier2023-01-05 05:03:34 +0100
commit7a2bd13f5bf00153fc543daa779c1037ecbe4298 (patch)
treeb7911b75d3742ea366376d73f95e020d6ec018a6 /CMakeLists.txt
parenttests: update catch2 to 3.0.1 (diff)
downloadyuzu-7a2bd13f5bf00153fc543daa779c1037ecbe4298.tar.gz
yuzu-7a2bd13f5bf00153fc543daa779c1037ecbe4298.tar.xz
yuzu-7a2bd13f5bf00153fc543daa779c1037ecbe4298.zip
cmake: support the standard cmake testing option
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 5 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
4cmake_minimum_required(VERSION 3.22) 4cmake_minimum_required(VERSION 3.22)
5 5
6project(yuzu)
7
6list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") 8list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules")
7list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules") 9list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/externals/cmake-modules")
10
8include(DownloadExternals) 11include(DownloadExternals)
9include(CMakeDependentOption) 12include(CMakeDependentOption)
10 13include(CTest)
11project(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
43option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF) 45option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF)
44 46
45option(YUZU_TESTS "Compile tests" ON) 47option(YUZU_TESTS "Compile tests" "${BUILD_TESTING}")
46 48
47option(YUZU_USE_PRECOMPILED_HEADERS "Use precompiled headers" ON) 49option(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()
607endif() 609endif()
608 610
609enable_testing()
610add_subdirectory(externals) 611add_subdirectory(externals)
611add_subdirectory(src) 612add_subdirectory(src)
612 613