Changeset View
Changeset View
Standalone View
Standalone View
containments/desktop/plugins/folder/CMakeLists.txt
1 | include(GenerateExportHeader) | ||||
---|---|---|---|---|---|
2 | | ||||
3 | if(BUILD_TESTING) | ||||
4 | add_definitions(-DBUILD_TESTING) | ||||
5 | endif(BUILD_TESTING) | ||||
6 | | ||||
1 | set(folderplugin_SRCS | 7 | set(folderplugin_SRCS | ||
2 | directorypicker.cpp | 8 | directorypicker.cpp | ||
3 | foldermodel.cpp | 9 | foldermodel.cpp | ||
4 | folderplugin.cpp | 10 | folderplugin.cpp | ||
5 | itemviewadapter.cpp | 11 | itemviewadapter.cpp | ||
6 | labelgenerator.cpp | 12 | labelgenerator.cpp | ||
7 | menuhelper.cpp | 13 | menuhelper.cpp | ||
8 | mimetypesmodel.cpp | 14 | mimetypesmodel.cpp | ||
Show All 16 Lines | 29 | target_link_libraries(folderplugin | |||
25 | Qt5::Qml | 31 | Qt5::Qml | ||
26 | Qt5::Quick | 32 | Qt5::Quick | ||
27 | KF5::KIOCore | 33 | KF5::KIOCore | ||
28 | KF5::KIOWidgets | 34 | KF5::KIOWidgets | ||
29 | KF5::KIOFileWidgets | 35 | KF5::KIOFileWidgets | ||
30 | KF5::I18n | 36 | KF5::I18n | ||
31 | KF5::PlasmaQuick | 37 | KF5::PlasmaQuick | ||
32 | KF5::ConfigGui) | 38 | KF5::ConfigGui) | ||
33 | 39 | | |||
mlaurent: Use
if(BUILD_TESTING)
add_subdirectory(tests)
endif()
it's avoid to build tests when… | |||||
34 | install(TARGETS folderplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/private/desktopcontainment/folder) | 40 | install(TARGETS folderplugin DESTINATION ${QML_INSTALL_DIR}/org/kde/private/desktopcontainment/folder) | ||
41 | | ||||
42 | generate_export_header(folderplugin BASE_NAME folderplugin) | ||||
43 | | ||||
44 | if(BUILD_TESTING) | ||||
45 | add_subdirectory(tests) | ||||
46 | endif(BUILD_TESTING) |
Use
if(BUILD_TESTING)
endif()
it's avoid to build tests when distro builds it.