Remove unneeded stuff from CMakelists.txt
set(CMAKE_AUTOMOC ON)
include(FindPkgConfig)
find_package(Qt5Core REQUIRED)
find_package(Qt5Quick REQUIRED)
Are already on the top-level CMakeLists.txt so no need to write them again
Well, actually the Qt5Core wasn't and i added it, it's not really necessary
since it's pulled by the others that depend on it, but it doesn't hurt to be
explicit
commit4bf9816a403ad3bc97aba1d1f2d557ff30f51774
authorAlbert Astals <albert.astals@canonical.com>
dateTue 13 Aug 2013, 11:10 (13 years ago)
parentce4c599
CMakeLists.txt+1
@@ -48,6 +48,7 @@ add_custom_target(cppcheck COMMAND cppcheck --enable=all -q --error-exitcode=2
4848 ${CMAKE_SOURCE_DIR}/src ${CMAKE_SOURCE_DIR}/tests)
4949
5050include(FindPkgConfig)
51+find_package(Qt5Core)
5152find_package(Qt5Qml)
5253find_package(Qt5Quick)
5354find_package(Qt5Gui)
plugins/Ubuntu/Gestures/CMakeLists.txt−6
@@ -1,12 +1,6 @@
11# export_qmlplugin macro
22include(Plugins)
33
4−set(CMAKE_AUTOMOC ON)
5−
6−include(FindPkgConfig)
7−find_package(Qt5Core REQUIRED)
8−find_package(Qt5Quick REQUIRED)
9−
104set(UbuntuGestureQml_SOURCES
115 plugin.cpp
126 AxisVelocityCalculator.cpp
tests/mocks/HudClient/CMakeLists.txt−5
@@ -1,8 +1,3 @@
1−set(CMAKE_AUTOMOC ON)
2−
3−include(FindPkgConfig)
4−find_package(Qt5Core REQUIRED)
5−find_package(Qt5Quick REQUIRED)
61pkg_search_module(DEE dee-1.0 REQUIRED)
72pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
83pkg_search_module(HUDCLIENT hud-client-2 REQUIRED)
tests/mocks/Ubuntu/Application/CMakeLists.txt−6
@@ -1,9 +1,3 @@
1−set(CMAKE_AUTOMOC ON)
2−
3−include(FindPkgConfig)
4−find_package(Qt5Core REQUIRED)
5−find_package(Qt5Quick REQUIRED)
6−
71set(FakeUbuntuApplicationQml_SOURCES
82 plugin.cpp
93 ApplicationInfo.cpp
tests/mocks/Unity/CMakeLists.txt−5
@@ -1,10 +1,5 @@
1−set(CMAKE_AUTOMOC ON)
2−
31add_subdirectory(Indicators)
42
5−include(FindPkgConfig)
6−find_package(Qt5Core REQUIRED)
7−find_package(Qt5Quick REQUIRED)
83pkg_search_module(DEE dee-1.0 REQUIRED)
94pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
105pkg_search_module(DEEQT libdee-qt5 REQUIRED)
tests/utils/modules/Unity/Test/CMakeLists.txt−4
@@ -1,7 +1,3 @@
1−find_package(Qt5Core REQUIRED)
2−find_package(Qt5Quick REQUIRED)
3−
4−set(CMAKE_AUTOMOC ON)
51add_definitions(-DQT_NO_KEYWORDS)
62
73set(UnityTestQML_SOURCES