~michael-sheldon/podbird/trunk

« back to all changes in this revision

Viewing changes to backend/CMakeLists.txt

  • Committer: Michael Sheldon
  • Date: 2015-01-04 10:20:41 UTC
  • Revision ID: michael.sheldon@canonical.com-20150104102041-7ywa80x963eqppeb
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include_directories(
 
2
    ${CMAKE_CURRENT_SOURCE_DIR}
 
3
)
 
4
 
 
5
set(
 
6
    Podbirdbackend_SRCS
 
7
    modules/Podbird/backend.cpp
 
8
    modules/Podbird/filemanager.cpp
 
9
)
 
10
 
 
11
add_library(Podbirdbackend MODULE
 
12
    ${Podbirdbackend_SRCS}
 
13
)
 
14
 
 
15
set_target_properties(Podbirdbackend PROPERTIES
 
16
         LIBRARY_OUTPUT_DIRECTORY Podbird)
 
17
 
 
18
qt5_use_modules(Podbirdbackend Gui Qml Quick)
 
19
 
 
20
# Copy qmldir file to build dir for running in QtCreator
 
21
add_custom_target(Podbirdbackend-qmldir ALL
 
22
    COMMAND cp ${CMAKE_CURRENT_SOURCE_DIR}/modules/Podbird/qmldir ${CMAKE_CURRENT_BINARY_DIR}/Podbird
 
23
    DEPENDS ${QMLFILES}
 
24
)
 
25
 
 
26
# Install plugin file
 
27
install(TARGETS Podbirdbackend DESTINATION ${QT_IMPORTS_DIR}/Podbird/)
 
28
install(FILES   modules/Podbird/qmldir DESTINATION ${QT_IMPORTS_DIR}/Podbird/)
 
29