2015-01-15 17:07:43 +00:00
|
|
|
set(plasmaweather_LIB_SRCS
|
|
|
|
weatherpopupapplet.cpp
|
|
|
|
weathervalidator.cpp
|
|
|
|
weatherlocation.cpp
|
|
|
|
weatherconfig.cpp
|
|
|
|
weatheri18ncatalog.cpp
|
2015-09-02 02:13:50 +03:00
|
|
|
weatherconfig.ui
|
2015-01-15 17:07:43 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
set(plasmaweather_HEADERS
|
|
|
|
weatherpopupapplet.h
|
|
|
|
weathervalidator.h
|
|
|
|
weatherconfig.h
|
|
|
|
weatherlocation.h
|
2021-07-28 13:14:25 +03:00
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/plasmaweather_export.h
|
2015-01-15 17:07:43 +00:00
|
|
|
)
|
|
|
|
|
2015-09-02 02:13:50 +03:00
|
|
|
add_library(plasmaweather SHARED ${plasmaweather_LIB_SRCS})
|
2015-01-15 17:07:43 +00:00
|
|
|
|
2021-07-28 13:14:25 +03:00
|
|
|
target_link_libraries(plasmaweather
|
|
|
|
${KDE4_PLASMA_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4WORKSPACE_WEATHERION_LIBRARY}
|
|
|
|
)
|
|
|
|
|
|
|
|
set_target_properties(plasmaweather PROPERTIES
|
|
|
|
VERSION ${GENERIC_LIB_VERSION}
|
|
|
|
SOVERSION ${GENERIC_LIB_SOVERSION}
|
|
|
|
)
|
|
|
|
|
|
|
|
generate_export_header(plasmaweather)
|
|
|
|
|
2015-01-15 17:07:43 +00:00
|
|
|
install(TARGETS plasmaweather ${INSTALL_TARGETS_DEFAULT_ARGS})
|
|
|
|
# nothing outside of kdeplasma-addons uses this library, and the API is not stable -> do not install headers!
|
2020-02-08 18:39:41 +00:00
|
|
|
#install(FILES ${plasmaweather_HEADERS} DESTINATION ${KDE4_INCLUDE_INSTALL_DIR}/plasmaweather COMPONENT Devel)
|