~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-13 11:29:28 UTC
  • mfrom: (22 reboot)
  • mto: (20.4.1 20-world-clocks)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: krnekhelesh@gmail.com-20140713112928-vw6gdia923ezd3hh
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
set (UBUNTU_PROJECT_TYPE "ClickApp" CACHE INTERNAL "Tells QtCreator this is a Click application project")
5
5
set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
6
 
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -fno-permissive -pedantic -Wall -Wextra")
7
6
 
8
7
find_package(Qt5Core)
9
8
find_package(Qt5Qml)
10
9
find_package(Qt5Quick)
11
 
find_package(Qt5DBus)
12
10
#find_package(ubuntu-sdk-libs)
13
11
 
14
12
#automatically create moc files
58
56
 
59
57
add_custom_target("autopilot" chmod +x ${CMAKE_SOURCE_DIR}/app/tests/autopilot/run
60
58
                    COMMAND ${CMAKE_SOURCE_DIR}/app/tests/autopilot/run
61
 
                    DEPENDS timezone timezone-qmldir alarmsettings alarmsettings-qmldir datetime datetime-qmldir
 
59
                    DEPENDS ubuntu-clock-appbackend ubuntu-clock-appbackend-qmldir
62
60
                    WORKING_DIRECTORY ./app)
63
61
 
64
62
enable_testing()
68
66
)
69
67
 
70
68
add_custom_target("run" /usr/bin/qmlscene -I ${CMAKE_BINARY_DIR}/backend  ${CMAKE_SOURCE_DIR}/app/ubuntu-clock-app.qml
71
 
                    DEPENDS timezone timezone-qmldir alarmsettings alarmsettings-qmldir datetime datetime-qmldir
 
69
                    DEPENDS ubuntu-clock-appbackend ubuntu-clock-appbackend-qmldir
72
70
                    WORKING_DIRECTORY ./app)