From 038f87583fc318e335cda781ee093abd77912440 Mon Sep 17 00:00:00 2001 From: Nathan Miller Date: Tue, 14 May 2024 07:47:59 -0700 Subject: [PATCH] move enable_testing() directive to top-level CMakeLists.txt to fix tests showing up in Visual Studio --- CMakeLists.txt | 2 ++ OdbDesignTests/CMakeLists.txt | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca12b8dc..e0f83750 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,6 +28,8 @@ FetchContent_Declare( set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) FetchContent_MakeAvailable(googletest) +enable_testing() + # Enable Hot Reload for MSVC compilers if supported. if (POLICY CMP0141) cmake_policy(SET CMP0141 NEW) diff --git a/OdbDesignTests/CMakeLists.txt b/OdbDesignTests/CMakeLists.txt index 2e296fc5..8a23e00d 100644 --- a/OdbDesignTests/CMakeLists.txt +++ b/OdbDesignTests/CMakeLists.txt @@ -1,8 +1,6 @@ # CMakeList.txt : CMake project for OdbDesignTests # -enable_testing() - add_executable(OdbDesignTests "Fixtures/FileArchiveLoadFixture.h" "Fixtures/FileArchiveLoadFixture.cpp"