mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-21 20:09:37 +00:00
chore(StatusQ): register StatusQ's cpp types for SanityChecker
This commit is contained in:
parent
9f97ce2cde
commit
89b767cf2a
@ -5,6 +5,8 @@ find_package(
|
||||
COMPONENTS Core Quick QuickControls2
|
||||
REQUIRED)
|
||||
|
||||
include (../StatusQSources.cmake)
|
||||
|
||||
set(QRC_FILES ../src/statusq.qrc ../src/assets.qrc)
|
||||
qt5_add_resources(QRC_COMPILED ${QRC_FILES})
|
||||
|
||||
@ -13,8 +15,12 @@ add_executable(
|
||||
main.cpp
|
||||
${QRC_FILES}
|
||||
${QRC_COMPILED}
|
||||
${STATUSQ_HEADERS}
|
||||
${STATUSQ_SOURCES}
|
||||
)
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC ${STATUSQ_DIR}/include)
|
||||
|
||||
target_link_libraries(
|
||||
${PROJECT_NAME} PRIVATE Qt5::Core Qt5::Quick Qt5::QuickControls2
|
||||
SortFilterProxyModel)
|
||||
|
@ -4,9 +4,14 @@
|
||||
#include <QQmlComponent>
|
||||
#include <QQmlEngine>
|
||||
|
||||
#include "StatusQ/typesregistration.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
registerStatusQTypes();
|
||||
|
||||
QQmlEngine engine;
|
||||
|
||||
engine.addImportPath(QStringLiteral(":/"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user