Diff Detail
- Repository
- R40 Kate
- Lint
Lint Skipped - Unit
Unit Tests Skipped
You may run cmake --help-policy CMP0063
I had found this Q/A https://stackoverflow.com/a/33209064 and didn't try to understand what all is about :-)
Hmm, actually I think we can just cleanup the CMakeLists.txt ;=)
I will push a change.
Upsa, used wrong number :?)
Git commit 02f20c0c18480a56ff9a6acf7d5bcfefc59e829d by Christoph Cullmann.
Committed on 26/12/2018 at 21:42.
Pushed by cullmann into branch 'master'.
fix cmake warning
Differential Revision: https://phabricator.kde.org/D17733
M +3 -22 addons/tabswitcher/tests/CMakeLists.txt
https://commits.kde.org/kate/02f20c0c18480a56ff9a6acf7d5bcfefc59e829d
diff --git a/addons/tabswitcher/tests/CMakeLists.txt b/addons/tabswitcher/tests/CMakeLists.txt
index 82a66b5c2..df88775c9 100644
- a/addons/tabswitcher/tests/CMakeLists.txt
+++ b/addons/tabswitcher/tests/CMakeLists.txt
@@ -1,22 +1,3 @@
-cmake_minimum_required(VERSION 3.0.0)
-project(tstestapp)
- Find includes in corresponding build directories
-set(CMAKE_INCLUDE_CURRENT_DIR ON)
- Instruct CMake to run moc automatically when needed.
-set(CMAKE_AUTOMOC ON)
- Find the QtWidgets library
-find_package(Qt5Widgets CONFIG REQUIRED)
-set(SRC
- tstestapp.cpp
- ../tabswitcherfilesmodel.cpp
-)
-add_executable(tstestapp ${SRC})
-target_link_libraries(tstestapp
- Qt5::Widgets
- KF5::TextEditor
-)
+# small test for the tabswitches
+add_executable(tstestapp tstestapp.cpp ../tabswitcherfilesmodel.cpp)
+target_link_libraries(tstestapp KF5::TextEditor)