title: How to run RUN_ALL_TESTS()
body: <p>I'm trying to figure it out Google Test framework + CLion.</p>
  <p>I unpacked the archive into <code>~/Documents/Libraries/googletest-main/</code>. Installed it, so that includes and libs are in <code>/usr/local/include/</code> and <code>/usr/local/lib/</code>, correspondingly.</p>
  <p>Then, created a project in CLion with two files:</p>
  <p><strong>CMakeLists.txt</strong></p>
  <pre><code>cmake_minimum_required(VERSION 3.23)
  project(TestProject)
  
  set(CMAKE_CXX_STANDARD 14)
  
  add_executable(TestProject test.cpp)
  
  target_link_libraries(TestProject gtest gtest_main)
  </code></pre>
  <p><strong>test.cpp</strong></p>
  <pre><code>#include &quot;gtest/gtest.h&quot;
  
  TEST(BasicTests, testName) {
      EXPECT_EQ(1, 2);
  }
  
  TEST(BasicTests, testName2) {
      ASSERT_EQ(2, 2);
  }
  
  TEST(BasicTests, testName3) {
      ASSERT_EQ(3, 3);
  }
  
  TEST(BasicTests, testName4) {
      ASSERT_EQ(4, 4);
  }
  </code></pre>
  <p>Now, as a part of the CLion interface, I can run tests, but independently. From the framework documentation and tutorials, I know that I can not implement <code>main()</code>, but use the function implemented in <code>gtest_main.cc</code> (for me, the path is <code>~/Documents/Libraries/googletest-main/googletest/scr/gtest_main.cc</code>).</p>
  <p>What needs to be done to run all the tests at once? (Often, in tutorials, the framework files lie inside the project folder, so the function RUN_ALL_TEST() can be run.)</p>