2015-01-15 17:07:43 +00:00
|
|
|
project(plasma-qalculate)
|
|
|
|
|
2021-06-10 07:04:09 +03:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}")
|
2015-01-15 17:07:43 +00:00
|
|
|
|
2020-02-19 16:53:05 +00:00
|
|
|
include_directories(${QALCULATE_INCLUDE_DIR})
|
|
|
|
|
2015-01-15 17:07:43 +00:00
|
|
|
# We add our source code here
|
|
|
|
set(qalculate_SRCS
|
2020-02-19 16:53:05 +00:00
|
|
|
qalculate_applet.cpp
|
|
|
|
qalculate_labels.cpp
|
|
|
|
qalculate_settings.cpp
|
|
|
|
qalculate_engine.cpp
|
|
|
|
qalculate_history.cpp
|
2015-01-15 17:07:43 +00:00
|
|
|
outputlabel.cpp
|
|
|
|
qalculate_graphicswidget.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# Now make sure all files get to the right place
|
|
|
|
kde4_add_plugin(plasma_applet_qalculate ${qalculate_SRCS})
|
|
|
|
target_link_libraries(plasma_applet_qalculate
|
2020-02-19 16:53:05 +00:00
|
|
|
${KDE4_PLASMA_LIBS}
|
|
|
|
${KDE4_KDEUI_LIBS}
|
|
|
|
${KDE4_SOLID_LIBS}
|
|
|
|
${KDE4_KIO_LIBS}
|
|
|
|
${QALCULATE_LIBRARIES}
|
|
|
|
)
|
2015-01-15 17:07:43 +00:00
|
|
|
|
|
|
|
install(TARGETS plasma_applet_qalculate
|
2020-02-08 18:39:41 +00:00
|
|
|
DESTINATION ${KDE4_PLUGIN_INSTALL_DIR})
|
2015-01-15 17:07:43 +00:00
|
|
|
|
|
|
|
install(FILES plasma-applet-qalculate.desktop
|
2020-02-08 18:39:41 +00:00
|
|
|
DESTINATION ${KDE4_SERVICES_INSTALL_DIR})
|
2015-01-15 17:07:43 +00:00
|
|
|
|
|
|
|
add_subdirectory(icons)
|