blob: b54bf129693c4c5ace3ba0233d6a6655f41ffc6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
Install libraries to the correct directory.
Gentoo-bug: 562624
Gentoo-bug: 570976
Gentoo-bug: 576946
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -159,7 +159,7 @@
endif (BUILD_KDE_APP OR BUILD_SHARED_LIBS)
set(WITH_QMLDIR_DEFAULT "share/kid3/qml")
set(WITH_BINDIR_DEFAULT "bin")
- set(WITH_LIBDIR_DEFAULT "lib${LIB_SUFFIX}/kid3")
+ set(WITH_LIBDIR_DEFAULT "lib${LIB_SUFFIX}")
set(WITH_PLUGINSDIR_DEFAULT "${WITH_LIBDIR_DEFAULT}/plugins")
endif (APPLE)
@@ -189,6 +189,10 @@
set(CMAKE_INSTALL_PREFIX_SLASH "")
endif (CMAKE_INSTALL_PREFIX)
+if (NOT APPLE AND NOT WIN32)
+ set(WITH_PLUGINSDIR "${WITH_LIBDIR_DEFAULT}/${QTVER}/plugins/kid3")
+endif ()
+
if (APPLE)
file(RELATIVE_PATH CFG_DATAROOTDIR "/kid3.app/Contents/MacOS" /${WITH_DATAROOTDIR})
file(RELATIVE_PATH CFG_DOCDIR "/kid3.app/Contents/MacOS" /${WITH_DOCDIR})
@@ -241,6 +245,7 @@
find_package(Qt4 COMPONENTS ${_QT4_COMPONENTS})
if (Qt4_FOUND OR QT4_FOUND)
include (${QT_USE_FILE})
+ set(QTVER "qt4")
if (NOT WITH_QT4)
message(STATUS "Qt4 found, explicitly set WITH_QT5 or QT_QMAKE_EXECUTABLE to use a different version.")
endif (NOT WITH_QT4)
@@ -276,6 +281,7 @@
endif (_qt5Dir)
if (Qt5Core_FOUND)
set(HAVE_QT5 1)
+ set(QTVER "qt5")
set(WITH_PHONON OFF)
set(QT_INCLUDES)
set(QT_DEFINITIONS)
|