2022-07-04 21:14:13 +00:00
|
|
|
cmake_minimum_required(VERSION 3.21)
|
|
|
|
|
2022-07-07 18:16:59 +00:00
|
|
|
project(TestStatusGoQtModule VERSION 0.1.0 LANGUAGES CXX)
|
2022-07-04 21:14:13 +00:00
|
|
|
|
|
|
|
set(QT_NO_CREATE_VERSIONLESS_FUNCTIONS true)
|
|
|
|
|
|
|
|
find_package(Qt6 ${STATUS_QT_VERSION} COMPONENTS Core REQUIRED)
|
|
|
|
qt6_standard_project_setup()
|
|
|
|
|
|
|
|
find_package(GTest REQUIRED)
|
|
|
|
|
|
|
|
enable_testing()
|
|
|
|
|
2022-07-07 18:16:59 +00:00
|
|
|
add_executable(TestStatusGoQtModule
|
2022-07-04 21:14:13 +00:00
|
|
|
test_accounts.cpp
|
|
|
|
test_messaging.cpp
|
2022-07-07 18:16:59 +00:00
|
|
|
test_onboarding.cpp
|
|
|
|
test_wallet.cpp
|
2022-07-04 21:14:13 +00:00
|
|
|
)
|
|
|
|
|
2022-07-07 18:16:59 +00:00
|
|
|
target_link_libraries(TestStatusGoQtModule
|
2022-07-04 21:14:13 +00:00
|
|
|
PRIVATE
|
|
|
|
Qt6::Core
|
|
|
|
|
|
|
|
GTest::gtest
|
|
|
|
GTest::gmock
|
|
|
|
GTest::gtest_main
|
|
|
|
|
|
|
|
Status::TestHelpers
|
|
|
|
Status::OnboardingTestHelpers
|
|
|
|
|
|
|
|
Status::Onboarding
|
|
|
|
|
|
|
|
Status::StatusGoQt
|
|
|
|
)
|
|
|
|
|
|
|
|
include(GoogleTest)
|
|
|
|
gtest_add_tests(
|
2022-07-07 18:16:59 +00:00
|
|
|
TARGET TestStatusGoQtModule
|
2022-07-04 21:14:13 +00:00
|
|
|
WORKING_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
|
|
|
|
)
|