We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7489c96 commit 4c172c6Copy full SHA for 4c172c6
1 file changed
test/CMakeLists.txt
@@ -5,6 +5,10 @@ cmake_minimum_required(VERSION 3.22)
5
find_package(Qt 6.2 MODULE REQUIRED COMPONENTS Core Test Qml Quick QuickTest)
6
find_package(GTest REQUIRED)
7
8
+if(NOT TARGET GTest::gmock)
9
+ message(FATAL_ERROR "GTest::gmock target is required for app unit tests. Ensure gmock is installed and exported by the active GTest package.")
10
+endif()
11
+
12
add_executable(bitcoinqml_unit_tests
13
test_unit_tests_main.cpp
14
test_bitcoinamount.cpp
@@ -37,7 +41,6 @@ target_include_directories(bitcoinqml_unit_tests
37
41
target_link_libraries(bitcoinqml_unit_tests
38
42
PRIVATE
39
43
bitcoin_common
40
- GTest::gmock
44
bitcoin_util
45
GTest::gmock
46
Qt6::Core
0 commit comments