~gcollura/ubuntu-weather-app/fix-1297463

« back to all changes in this revision

Viewing changes to click/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Benjamin Zeller
  • Date: 2014-09-09 22:41:15 UTC
  • mfrom: (360.3.2 ubuntu-weather-app)
  • Revision ID: tarmac-20140909224115-9cboeeygsnoyhc2z
Make Weather app cmake project useable out of the Box with QtCreator
- Enable click mode by default
- Hook names in the manifest file can not be variables
- Disable click mode in debian rules file
- Add variable UBUNTU_MANIFEST_PATH variable so QtC knows where to look
for the manifest file
- Rename apparmor.json to weather.apparmor (editor support)
- Make sure qml/js files are shown in the project tree.

Approved by Martin Borho, Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
        set(BZR_REVNO "latest")
4
4
    endif(NOT BZR_REVNO)
5
5
    configure_file(manifest.json.in ${CMAKE_CURRENT_BINARY_DIR}/manifest.json)
6
 
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json apparmor.json
 
6
    install(FILES ${CMAKE_CURRENT_BINARY_DIR}/manifest.json weather.apparmor
7
7
            DESTINATION ${CMAKE_INSTALL_PREFIX})
 
8
 
 
9
    # make the click files visible in qtcreator
 
10
    file(GLOB CLICK_FILES
 
11
         RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
 
12
         *.json *.json.in *.apparmor)
 
13
 
 
14
    add_custom_target(com_ubuntu_weather_CLICKFiles ALL SOURCES ${CLICK_FILES})
8
15
endif(CLICK_MODE)