~carlos-mazieri/ubuntu-filemanager-app/app-devel

« back to all changes in this revision

Viewing changes to src/app/CMakeLists.txt

  • Committer: Tarmac
  • Author(s): David Planella, carlos.mazieri at gmail, carlos-mazieri, nskaggs, Victor Thompson, Francis Ginther
  • Date: 2014-04-15 14:28:53 UTC
  • mfrom: (151.1.20 include-plugin)
  • Revision ID: tarmac-20140415142853-allemrzdm6ny3tkb
Merge the C++ folderlistmodel plugin into the app's source tree. Fixes: https://bugs.launchpad.net/bugs/1300911.

Approved by Nicholas Skaggs, Ubuntu Phone Apps Jenkins Bot, Carlos Jose Mazieri.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
file(GLOB_RECURSE QML_SRCS *.qml *.js)
 
2
 
 
3
set(filemanager_SRCS
 
4
    main.cpp
 
5
    ${QML_SRCS}
 
6
)
 
7
 
 
8
add_executable(filemanager ${filemanager_SRCS})
 
9
 
 
10
qt5_use_modules(filemanager Gui Qml Quick)
 
11
 
 
12
if(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
 
13
add_custom_target(filemanager-qmlfiles ALL
 
14
    COMMAND cp -r ${CMAKE_CURRENT_SOURCE_DIR}/qml ${CMAKE_CURRENT_BINARY_DIR}
 
15
    DEPENDS ${QMLFILES}
 
16
)
 
17
endif(NOT "${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_BINARY_DIR}")
 
18
 
 
19
install(DIRECTORY qml DESTINATION ${DATA_DIR})
 
20
if(CLICK_MODE)
 
21
  install(TARGETS filemanager DESTINATION ${BIN_DIR})
 
22
else()
 
23
  install(TARGETS filemanager RUNTIME DESTINATION bin)
 
24
endif()