title: Catch2 unit tests are not running with CMake project
body: <p>I have a project structured like:</p>
  
  <pre><code>|--assets/
  |--core/
      |--deps/
          |--Catch2/
               |--win32/
                    |--# Have Catch2 library installed here
      |--include/
           |--# Nothing here
      |--src/
          |--sample.cpp # No content in this file
      |--tests/
           |--test.cpp
      |--CMakeLists.txt
  |--main.cpp
  |--CMakeLists.txt
  </code></pre>
  
  <p>The top level CMakeLists.txt content is:</p>
  
  <pre><code>cmake_minimum_required (VERSION 3.8)
  
  set_property(GLOBAL PROPERTY USE_FOLDERS ON)
  project("My.Project")
  
  add_executable(MyProject main.cpp)
  
  # Copy all DLLs if windows:
  if(WIN32)
      file(GLOB_RECURSE DYNAMIC_LIBS "${CMAKE_CURRENT_SOURCE_DIR}/*.dll")
      foreach(dll ${DYNAMIC_LIBS})
          add_custom_command(TARGET AZTEC_EDITOR POST_BUILD
              COMMAND ${CMAKE_COMMAND} -E copy
              ${dll} $&lt;TARGET_FILE_DIR:AZTEC_EDITOR&gt;)
      endforeach()
  else(APPLE)
  endif()
  
  add_subdirectory(core)
  target_link_libraries(MyProject MyLib)
  </code></pre>
  
  <p>The CMakeLists.txt file in the "core" folder is:</p>
  
  <pre><code>file(GLOB HEADER_FILES "${CMAKE_CURRENT_SOURCE_DIR}/include/*.h")
  file(GLOB SOURCE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp")
  file(GLOB TEST_FILES "${CMAKE_CURRENT_SOURCE_DIR}/tests/*.cpp")
  
  add_library(MyLib ${HEADER_FILES} ${SOURCE_FILES} ${TEST_FILES})
  
  target_include_directories(MyLib PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/include")
  
  # Copy all DLLs if windows:
  if(WIN32)
      file(GLOB_RECURSE DYNAMIC_LIBS "${CMAKE_CURRENT_SOURCE_DIR}/*.dll")
      foreach(dll ${DYNAMIC_LIBS})
          add_custom_command(TARGET AZTEC_EDITOR_CORE POST_BUILD
              COMMAND ${CMAKE_COMMAND} -E copy
              ${dll} $&lt;TARGET_FILE_DIR:AZTEC_EDITOR_CORE&gt;)
      endforeach()
  else(APPLE)
  endif()
  
  # Catch2 stuff:
  if(WIN32)
      find_package(Catch2 REQUIRED PATHS "${CMAKE_CURRENT_SOURCE_DIR}/deps/catch2/win32")
      target_link_libraries(MyLib Catch2::Catch2)
  endif()
  
  include(CTest)
  include(Catch)
  catch_discover_tests(MyLib)
  </code></pre>
  
  <p>My <code>test.cpp</code> content (from Catch2 documentation and this test should fail):</p>
  
  <pre><code>#define CATCH_CONFIG_MAIN
  #include "catch2/catch.hpp"
  
  unsigned int Factorial(unsigned int number)
  {
      return number &lt;= 1 ? number : Factorial(number - 1)*number;
  }
  
  TEST_CASE("Factorials are computed", "[factorial]")
  {
      REQUIRE(Factorial(1) == 2); // Should fail here.
      REQUIRE(Factorial(2) == 2);
      REQUIRE(Factorial(3) == 6);
      REQUIRE(Factorial(10) == 3628800);
  }
  </code></pre>
  
  <p>When I generate the Visual Studio files using <code>cmake -G "Visual Studio 15" . -B .\build</code>, usually, when the tests are discovered, I see a project grouped under "CMakePredefinedTargets" called "RUN_TESTS". However, I can't see this project anymore.</p>
  
  <p>Also, when I build the project (using Visual Studio 2017), the tests are not running. Please help. Thanks.</p>