~vthompson/ubuntu-weather-app/reboot-15.04

« back to all changes in this revision

Viewing changes to plugins/CMakeLists.txt

  • Committer: Victor Thompson
  • Date: 2015-01-23 02:25:35 UTC
  • mto: (1.1.3 build-reboot)
  • mto: This revision was merged to the branch mainline in revision 2.
  • Revision ID: victor.thompson@gmail.com-20150123022535-tl7rmt0ksjt9f88t
* Fill out file structure to allow CMake to build, assuming old file layout.

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
    timeZone_SRCS
 
7
    TimeZone/timezone.cpp
 
8
    TimeZone/timezone_plugin.cpp
 
9
)
 
10
 
 
11
#add_library(TimeZoneBackend MODULE
 
12
#    ${timeZone_SRCS}
 
13
#)
 
14
#set_target_properties(TimeZoneBackend PROPERTIES
 
15
#         LIBRARY_OUTPUT_DIRECTORY TimeZone)
 
16
 
 
17
#qt5_use_modules(TimeZoneBackend Gui Qml Quick)
 
18
 
 
19
# Copy qmldir file to build dir for running in QtCreator
 
20
#add_custom_target(TimeZoneBackend-qmldir ALL
 
21
#    COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/TimeZone/qmldir ${CMAKE_CURRENT_BINARY_DIR}/TimeZone
 
22
#    DEPENDS ${QML_JS_FILES}
 
23
#)
 
24
 
 
25
# Install plugin file
 
26
#install(TARGETS TimeZoneBackend DESTINATION ${QT_IMPORTS_DIR}/qt5/qml/UbuntuWeather/TimeZone/)
 
27
#install(FILES TimeZone/qmldir DESTINATION ${QT_IMPORTS_DIR}/qt5/qml/UbuntuWeather/TimeZone/)