We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c53767b commit 3489d71Copy full SHA for 3489d71
cmake/dependencies.cmake
@@ -1,7 +1,14 @@
1
-# https://docs.hunter.sh/en/latest/packages/pkg/GTest.html
2
-hunter_add_package(GTest)
3
-find_package(GTest CONFIG REQUIRED)
4
-find_package(GMock CONFIG REQUIRED)
+#
+# Copyright Soramitsu Co., Ltd. All Rights Reserved.
+# SPDX-License-Identifier: Apache-2.0
5
+
6
+if (TESTING)
7
+ # https://docs.hunter.sh/en/latest/packages/pkg/GTest.html
8
+ hunter_add_package(GTest)
9
+ find_package(GTest CONFIG REQUIRED)
10
+ find_package(GMock CONFIG REQUIRED)
11
+endif()
12
13
# https://docs.hunter.sh/en/latest/packages/pkg/Boost.html
14
hunter_add_package(Boost COMPONENTS random filesystem program_options)
0 commit comments