~mrqtros/ubuntu-docviewer-app/ubuntu-docviewer-app-pdf-renderengine

« back to all changes in this revision

Viewing changes to src/app/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): Stefano Verzegnassi
  • Date: 2015-11-30 20:54:47 UTC
  • mfrom: (215.2.3 ubuntu-docviewer-app)
  • Revision ID: tarmac-20151130205447-xkmlk33g8lfn03m0
* Added splashscreen for loViewer
* Moved the async logic that loads loViewer in another component
* Removed 'PanelButton' component - no longer used
* Changed the behaviour of the header in the loViewer: if (textDocument) hideableHeader = true
* Don't use a global 'graphics' folder. Assets are now placed in the module which uses them. Fixes: https://bugs.launchpad.net/bugs/1495079.

Approved by Roman Shchekin, Alan Pope , Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
file(GLOB_RECURSE QML_SRCS *.qml *.js)
2
 
file(GLOB_RECURSE IMAGE_FILES *.qml *.js)
3
2
 
4
3
find_package(Qt5Core)
5
4
find_package(Qt5Gui)
37
36
)
38
37
endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
39
38
 
40
 
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
41
 
add_custom_target(docviewer-imagefiles ALL
42
 
    COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/graphics ${CMAKE_CURRENT_BINARY_DIR}
43
 
    DEPENDS ${IMAGE_FILES}
44
 
)
45
 
endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
46
 
 
47
39
install(DIRECTORY qml DESTINATION ${DATA_DIR})
48
 
install(DIRECTORY graphics DESTINATION ${DATA_DIR})
49
40
 
50
41
if(CLICK_MODE)
51
42
  install(TARGETS ubuntu-docviewer-app DESTINATION ${BIN_DIR})