~ubuntu-branches/ubuntu/trusty/ubuntu-html5-theme/trusty-proposed

« back to all changes in this revision

Viewing changes to src/ubuntu-html5-container-qml/Ubuntu/WebApps/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Robert Bruce Park, Ubuntu daily release
  • Date: 2014-02-04 14:42:31 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20140204144231-cygzw6ti0zem0fsw
Tags: 0.1.1+14.04.20140204-0ubuntu1
[ Robert Bruce Park ]
* Add transitional packages to assist with package rename effort.

[ Ubuntu daily release ]
* Automatic snapshot from revision 122

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
project(ubuntu-html5-container)
2
 
 
3
 
# setup install location
4
 
execute_process(
5
 
    COMMAND qmake -query QT_INSTALL_QML
6
 
    OUTPUT_VARIABLE QT_INSTALL_QML
7
 
    OUTPUT_STRIP_TRAILING_WHITESPACE
8
 
)
9
 
set(HTML5_CONTAINER_IMPORTS_DIR "${QT_INSTALL_QML}/Ubuntu/WebApps")
10
 
 
11
 
# setup install for local component files
12
 
file(GLOB QML_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.qml qmldir)
13
 
install(FILES ${QML_FILES} DESTINATION ${HTML5_CONTAINER_IMPORTS_DIR})
14
 
 
15
 
# make sure that we have all the files in the right place if we test locally
16
 
# & have a specific build dir
17
 
if(NOT ${CMAKE_CURRENT_BINARY_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
18
 
  foreach(_qmlfile ${QML_FILES})
19
 
    add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${_qmlfile}
20
 
                       DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_qmlfile}
21
 
                       COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/${_qmlfile} ${CMAKE_CURRENT_BINARY_DIR}/${_qmlfile})
22
 
  endforeach(_qmlfile)
23
 
  add_custom_target(copy_to_build_dir DEPENDS ${QML_FILES})
24
 
endif()
25