c107433190
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
11 lines
406 B
CMake
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})
|