CMakeLists.txt 1.07 KB
Newer Older
1 2 3 4 5 6 7
add_definitions(
    -DQT_USE_QSTRINGBUILDER
    -DQT_NO_CAST_TO_ASCII
    -DQT_NO_CAST_FROM_ASCII
    -DQT_NO_CAST_FROM_BYTEARRAY
)

Petri Damstén's avatar
Petri Damstén committed
8 9 10
set(plasmaweather_LIB_SRCS
    weatherpopupapplet.cpp
    weathervalidator.cpp
11
    weatherlocation.cpp
Petri Damstén's avatar
Petri Damstén committed
12 13 14 15 16
)

set(plasmaweather_HEADERS
    weatherpopupapplet.h
    weathervalidator.h
17
    weatherlocation.h
Petri Damstén's avatar
Petri Damstén committed
18 19 20
    plasmaweather_export.h
)

21
add_library(plasmaweather SHARED ${plasmaweather_LIB_SRCS})
22
generate_export_header(plasmaweather)
Petri Damstén's avatar
Petri Damstén committed
23

24
target_link_libraries(plasmaweather
25
PUBLIC
26 27
    KF5::Plasma
    KF5::UnitConversion
28
PRIVATE
29
    KF5::WidgetsAddons
30
    KF5::Notifications
31 32
    KF5::I18n
)
33 34 35
set_target_properties(plasmaweather PROPERTIES
    OUTPUT_NAME plasmaweatherprivate
)
36
target_include_directories(plasmaweather INTERFACE "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/..>")
37 38

install(TARGETS plasmaweather ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
Aaron J. Seigo's avatar
Aaron J. Seigo committed
39 40
# nothing outside of kdeplasma-addons uses this library, and the API is not stable -> do not install headers!
#install(FILES ${plasmaweather_HEADERS} DESTINATION ${INCLUDE_INSTALL_DIR}/plasmaweather COMPONENT Devel)