~ubuntu-branches/ubuntu/wily/webbrowser-app/wily-proposed

« back to all changes in this revision

Viewing changes to src/Ubuntu/Browser/CMakeLists.txt

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2013-06-05 05:03:05 UTC
  • Revision ID: package-import@ubuntu.com-20130605050305-qgpd9x3s01m06dca
Tags: upstream-0.20daily13.06.05
ImportĀ upstreamĀ versionĀ 0.20daily13.06.05

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
project(webbrowser-plugin)
 
2
 
 
3
set(PLUGIN ubuntubrowser)
 
4
 
 
5
set(PLUGIN_SRC
 
6
    plugin.cpp
 
7
)
 
8
 
 
9
add_library(${PLUGIN} MODULE ${PLUGIN_SRC})
 
10
 
 
11
qt5_use_modules(${PLUGIN} Qml)
 
12
 
 
13
file(GLOB QML_FILES *.qml qmldir *.js *.qmltheme)
 
14
install(TARGETS ${PLUGIN} DESTINATION ${WEBBROWSER_IMPORTS_DIR})
 
15
install(FILES ${QML_FILES} DESTINATION ${WEBBROWSER_IMPORTS_DIR})
 
16
install(DIRECTORY assets DESTINATION ${WEBBROWSER_IMPORTS_DIR}
 
17
        FILES_MATCHING PATTERN *.png)
 
18
 
 
19
# copy qml files over to build dir to be able to import them in tests
 
20
foreach(qmlFile ${QML_FILES})
 
21
  file(COPY ${qmlFile} DESTINATION ${CMAKE_BINARY_DIR}/src/Ubuntu/Browser/)
 
22
endforeach(qmlFile)