on xenial help sign in
import qml files into cmake, drop qmlproject
commitebd5d11a470d70c8c1144a5ffa9eb89caa0af60e authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 8 Jan 2014, 11:08 (13 years ago) parenta6bf7e6
2 files changed+4−26
src/CMakeLists.txt+4−1 unity8.qmlproject−25
src/CMakeLists.txt+4−1
@@ -5,11 +5,14 @@ include_directories(
55 ${UNITY-MIR_INCLUDE_DIRS}
66)
77
8+file(GLOB_RECURSE QML_FILES ${CMAKE_SOURCE_DIR}/qml/*)
9+
810add_executable(${SHELL_APP}
911 ApplicationArguments.h
1012 main.cpp
1113 MouseTouchAdaptor.cpp
12− )
14+ ${QML_FILES} # This is to make qml and image files appear in the IDE's project tree
15+)
1316
1417qt5_use_modules(${SHELL_APP} Gui Qml Quick Test)
1518pkg_check_modules(XCB REQUIRED xcb)
unity8.qmlprojectdeleted−25
@@ -1,25 +0,0 @@
1−/* File generated by Qt Creator, version 2.4.1 */
2−
3−import QmlProject 1.1
4−
5−Project {
6− mainFile: "Shell.qml"
7−
8− /* Include .qml, .js, and image files from current directory and subdirectories */
9− QmlFiles {
10− directory: "."
11− }
12− JavaScriptFiles {
13− directory: "."
14− }
15− ImageFiles {
16− directory: "."
17− }
18− /* List of plugin directories passed to QML runtime */
19− importPaths: [
20− "builddir/plugins",
21− "builddir/modules",
22− "builddir/tests/plugins",
23− "builddir/tests/utils/modules"
24− ]
25−}