Commit a409bcb6 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Only link to QtTest if needed.

parent c4eedf26
......@@ -242,7 +242,7 @@ if (NOT WITH_QT4 AND NOT Qt4_FOUND AND NOT QT4_FOUND)
set(QT_INCLUDES)
set(QT_DEFINITIONS)
set(QT_LIBRARIES)
set(_qt5Components Core Gui Widgets Network Xml Multimedia LinguistTools Test)
set(_qt5Components Core Gui Widgets Network Xml Multimedia)
if (WITH_DBUS)
set(_qt5Components ${_qt5Components} DBus)
endif (WITH_DBUS)
......@@ -257,6 +257,10 @@ if (NOT WITH_QT4 AND NOT Qt4_FOUND AND NOT QT4_FOUND)
set(QT_LIBRARIES ${QT_LIBRARIES} ${Qt5${_qt5Component}_LIBRARIES})
endif (Qt5${_qt5Component}_FOUND)
endforeach ()
find_package(Qt5LinguistTools)
find_package(Qt5Test)
set(QT_QTTEST_LIBRARY Qt5::Test)
set(QT_QTTEST_INCLUDE_DIR ${Qt5Test_INCLUDE_DIRS})
if (Qt5DBus_FOUND)
set(HAVE_QTDBUS 1)
endif (Qt5DBus_FOUND)
......
......@@ -7,6 +7,10 @@ set(kde_SRCS
)
if (HAVE_QT5)
if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif (POLICY CMP0063)
add_executable(kid3 ${kde_SRCS})
target_link_libraries(kid3 kid3-gui KF5::KIOFileWidgets -lstdc++)
......
......@@ -26,7 +26,6 @@
#include "amazonimporter.h"
#include <QRegExp>
#include <QDomDocument>
#include "trackdatamodel.h"
#include "amazonconfig.h"
......
include_directories(
${QT_QTTEST_INCLUDE_DIR}
../core/utils
../core/model
../core/tags
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment