File tree Expand file tree Collapse file tree 4 files changed +4
-61
lines changed Expand file tree Collapse file tree 4 files changed +4
-61
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,6 @@ endif()
65
65
# Set the directory where tools will get installed
66
66
set ( DEMO_TOOLS_BINARY_DIR ${CMAKE_BINARY_DIR} /tools )
67
67
68
- # Include the macro for adding resources
69
- include ( cmake/rcc.cmake )
70
-
71
68
# Add other subdirectories containing CMakeLists.txt file
72
69
add_subdirectory ( src )
73
70
add_subdirectory ( tools )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
set ( demo_SRCS demo.cpp )
2
+ qt5_add_resources ( demo_QRC demo.qrc )
2
3
3
4
if ( ANDROID )
4
- add_library ( Demo SHARED ${demo_SRCS} )
5
+ add_library ( Demo SHARED ${demo_SRCS} ${demo_QRC} )
5
6
qt5_use_modules ( Demo Qml Quick )
6
7
else ()
7
- add_executable ( Demo ${demo_SRCS} )
8
+ add_executable ( Demo ${demo_SRCS} ${demo_QRC} )
8
9
qt5_use_modules ( Demo Qml Quick )
9
10
endif ()
10
11
11
12
target_link_libraries ( Demo Qt5::Qml Qt5::Quick )
12
-
13
- DEMO_ADD_RCC (src Demo.qml )
Original file line number Diff line number Diff line change 4
4
int main (int argc, char *argv[])
5
5
{
6
6
QGuiApplication app (argc, argv);
7
- QQmlApplicationEngine engine (QUrl (" qrc:/Demo/src/Demo .qml" ));
7
+ QQmlApplicationEngine engine (QUrl (" qrc:/Demo.qml" ));
8
8
return app.exec ();
9
9
}
You can’t perform that action at this time.
0 commit comments