fix(tests): fix building tests

This commit is contained in:
Stefan 2022-08-08 11:31:24 +02:00 committed by Michał Cieślak
parent 0a6c1bfcac
commit 0f40f5bb0d
1 changed files with 6 additions and 0 deletions

View File

@ -2,8 +2,14 @@ cmake_minimum_required(VERSION 3.5)
project(TestStatusQ LANGUAGES CXX)
# The current StatusQ builds with Qt 5.14 which doesn't support the apple silicon.
# Therefore force the intel architecture for MacOS platforms.
set(CMAKE_OSX_ARCHITECTURES "x86_64")
enable_testing()
set(CMAKE_AUTOMOC ON)
# TODO: Workaround until we make StatusQ a CMake library
list(APPEND QML_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/../src/")
set(QML_IMPORT_PATH "${QML_DIRS}" CACHE STRING "Qt Creator extra qml import paths")