|
Line 0
Link Here
|
|
|
1 |
################################################# |
| 2 |
# |
| 3 |
# (C) 2012 Golubev Alexander |
| 4 |
# fatzer2 (AT) gmail.com |
| 5 |
# |
| 6 |
# Improvements and feedback are welcome |
| 7 |
# |
| 8 |
# This file is released under GPL >= 2 |
| 9 |
# |
| 10 |
################################################# |
| 11 |
|
| 12 |
add_subdirectory( graphics ) |
| 13 |
|
| 14 |
include_directories( |
| 15 |
${CMAKE_BINARY_DIR} |
| 16 |
${CMAKE_CURRENT_BINARY_DIR} |
| 17 |
${CMAKE_CURRENT_SOURCE_DIR} |
| 18 |
${TDE_INCLUDE_DIR} |
| 19 |
${TQT_INCLUDE_DIRS} |
| 20 |
) |
| 21 |
|
| 22 |
link_directories( |
| 23 |
${TQT_LIBRARY_DIRS} |
| 24 |
) |
| 25 |
|
| 26 |
|
| 27 |
##### kweatherreport (tdeinit) ################## |
| 28 |
|
| 29 |
tde_add_tdeinit_executable( kweatherreport AUTOMOC |
| 30 |
SOURCES reportmain.cpp weatherservice.stub |
| 31 |
reportview.cpp |
| 32 |
LINK tdeui-shared khtml-shared |
| 33 |
) |
| 34 |
|
| 35 |
|
| 36 |
##### kweatherservice (executable) ############## |
| 37 |
|
| 38 |
tde_add_executable( kweatherservice AUTOMOC |
| 39 |
SOURCES main.cpp metar_parser.cpp |
| 40 |
weatherlib.cpp weatherservice.cpp |
| 41 |
weatherservice.skel stationdatabase.cpp |
| 42 |
sun.cpp weatherservice.stub |
| 43 |
LINK kio-shared |
| 44 |
DESTINATION ${BIN_INSTALL_DIR} |
| 45 |
) |
| 46 |
|
| 47 |
|
| 48 |
##### sun_test (test) ########################### |
| 49 |
# FIXME: add correct test targets support |
| 50 |
# |
| 51 |
# tde_add_executable( sun_test AUTOMOC |
| 52 |
# SOURCES sun_test.cpp sun.cpp |
| 53 |
# ) |
| 54 |
# |
| 55 |
# add_test( NAME sun_test-test |
| 56 |
# COMMAND sun_test) |
| 57 |
# |
| 58 |
# |
| 59 |
##### stationdatabase_test (test) ############### |
| 60 |
# |
| 61 |
# tde_add_executable( stationdatabase_test AUTOMOC |
| 62 |
# SOURCES stationdatabase_test.cpp |
| 63 |
# stationdatabase.cpp |
| 64 |
# ) |
| 65 |
# |
| 66 |
# add_test( NAME stationdatabase_test-test |
| 67 |
# COMMAND stationdatabase_test) |
| 68 |
# |
| 69 |
# |
| 70 |
##### metar_parser_test (test) ################## |
| 71 |
# |
| 72 |
# tde_add_executable( metar_parser_test AUTOMOC |
| 73 |
# SOURCES metar_parser_test.cpp metar_parser.cpp |
| 74 |
# stationdatabase.cpp sun.cpp |
| 75 |
# ) |
| 76 |
# |
| 77 |
# add_test( NAME metar_parser_test-test |
| 78 |
# COMMAND metar_parser_test) |
| 79 |
# |
| 80 |
|
| 81 |
##### weather_panelapplet (kpart) ############### |
| 82 |
|
| 83 |
tde_add_kpart( weather_panelapplet AUTOMOC |
| 84 |
SOURCES reportview.cpp kweather.cpp |
| 85 |
dockwidget.cpp weatherIface.skel |
| 86 |
weatherservice.stub weatherbutton.cpp |
| 87 |
LINK khtml-shared |
| 88 |
DESTINATION ${PLUGIN_INSTALL_DIR} |
| 89 |
) |
| 90 |
|
| 91 |
|
| 92 |
##### kcm_weather (kpart) ####################### |
| 93 |
|
| 94 |
tde_add_kpart( kcm_weather AUTOMOC |
| 95 |
SOURCES kcmweather.cpp prefdialogdata.ui |
| 96 |
weatherservice.stub |
| 97 |
LINK kio-shared |
| 98 |
DESTINATION ${PLUGIN_INSTALL_DIR} |
| 99 |
) |
| 100 |
|
| 101 |
|
| 102 |
##### kcm_weatherservice (kpart) ################ |
| 103 |
|
| 104 |
tde_add_kpart( kcm_weatherservice AUTOMOC |
| 105 |
SOURCES kcmweatherservice.cpp |
| 106 |
serviceconfigwidget.cpp serviceconfigdata.ui |
| 107 |
weatherservice.stub |
| 108 |
LINK tdeui-shared khtml-shared |
| 109 |
DESTINATION ${PLUGIN_INSTALL_DIR} |
| 110 |
) |
| 111 |
|
| 112 |
|
| 113 |
##### icons ##################################### |
| 114 |
|
| 115 |
tde_install_icons( kweather ) |
| 116 |
|
| 117 |
|
| 118 |
##### other data ################################ |
| 119 |
|
| 120 |
install( FILES weather_stations.desktop |
| 121 |
DESTINATION ${DATA_INSTALL_DIR}/kweatherservice |
| 122 |
) |
| 123 |
|
| 124 |
install( FILES stations.dat |
| 125 |
DESTINATION ${DATA_INSTALL_DIR}/kweatherservice |
| 126 |
) |
| 127 |
|
| 128 |
install( FILES kweather.desktop |
| 129 |
DESTINATION ${DATA_INSTALL_DIR}/kicker/applets |
| 130 |
) |
| 131 |
|
| 132 |
install( FILES kweatherservice.desktop |
| 133 |
DESTINATION ${SERVICES_INSTALL_DIR} |
| 134 |
) |
| 135 |
|