You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
828 B
35 lines
828 B
|
|
########### next target ############### |
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"plasma_runner_calculatorrunner\") |
|
|
|
set(EXTERNAL_LIBS |
|
KF5::KIOCore |
|
KF5::Runner |
|
KF5::I18n |
|
Qt::Network |
|
Qt::Widgets |
|
) |
|
|
|
set(qalculate_engine_SRCS |
|
qalculate_engine.cpp |
|
qalculate_engine.h |
|
) |
|
set(krunner_calculatorrunner_SRCS |
|
calculatorrunner.cpp |
|
calculatorrunner.h |
|
) |
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated") |
|
kde_enable_exceptions() |
|
|
|
kcoreaddons_add_plugin(calculator SOURCES ${qalculate_engine_SRCS} ${krunner_calculatorrunner_SRCS} INSTALL_NAMESPACE "kf${QT_MAJOR_VERSION}/krunner") |
|
target_link_libraries(calculator |
|
${QALCULATE_LIBRARIES} |
|
${CLN_LIBRARIES} |
|
${EXTERNAL_LIBS} |
|
) |
|
|
|
if(BUILD_TESTING) |
|
add_subdirectory(autotests) |
|
endif()
|
|
|