plasma-framework/examples/testcontainmentactionsplugin/CMakeLists.txt
Heiko Becker c107433190 plasma_containmentactions_test: Link to KI18n
I get "CMakeFiles/plasma_containmentactions_test.dir/test.cpp.o:
test.cpp:function ContextTest::createConfigurationInterface(QWidget*):
error: undefined reference to 'ki18n(char const*)'"
errors otherwise when building with -DBUILD_EXAMPLES:BOOL=TRUE.

Change-Id: I9af913bf182fee20c1e59cd76c840b1e6350c269
2014-12-10 13:14:29 +01:00

11 lines
406 B
CMake

set(test_SRCS
test.cpp
)
ki18n_wrap_ui(test_SRCS config.ui)
add_library(plasma_containmentactions_test MODULE ${test_SRCS})
target_link_libraries(plasma_containmentactions_test KF5::Plasma KF5::I18n KF5::KIOWidgets KF5::XmlGui)
install(TARGETS plasma_containmentactions_test DESTINATION ${PLUGIN_INSTALL_DIR})
install(FILES plasma-containmentactions-test.desktop DESTINATION ${SERVICES_INSTALL_DIR})