File: install-deps.cmake

package info (click to toggle)
eiskaltdcpp 2.4.2-1.4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,788 kB
  • sloc: cpp: 97,597; ansic: 5,004; perl: 1,897; xml: 1,440; sh: 1,313; php: 661; javascript: 257; makefile: 39
file content (95 lines) | stat: -rw-r--r-- 2,663 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
cmake_minimum_required (VERSION 3.5)

if (CMAKE_PREFIX_PATH MATCHES "mxe" AND NOT BUILD_STATIC)
    set (LIBS_TARGET install-dependencies)
    set (COMMON_LIBS_DIR "${CMAKE_PREFIX_PATH}/bin")
    set (QT_LIBS_DIR "${CMAKE_PREFIX_PATH}/qt5/bin")
    set (QT_PLUGINS_DIR "${CMAKE_PREFIX_PATH}/qt5/plugins")

    set (COMMON_LIBS
            libaspell-15.dll
            libbz2.dll
            libcrypto-1_1.dll
            libcrypto-1_1-x64.dll
            libdbus-1-3.dll
            libexpat-1.dll
            libfontconfig-1.dll
            libfreetype-6.dll
            libgcc_s_seh-1.dll
            libgcc_s_sjlj-1.dll
            libglib-2.0-0.dll
            libharfbuzz-0.dll
            libharfbuzz-icu-0.dll
            libiconv-2.dll
            libidn-12.dll
            libintl-8.dll
            libjpeg-9.dll
            libminiupnpc.dll
            libpcre-1.dll
            libpcre2-16-0.dll
            libpcrecpp-0.dll
            libpng16-16.dll
            libsqlite3-0.dll
            libssl-1_1.dll
            libssl-1_1-x64.dll
            libstdc++-6.dll
            libwinpthread-1.dll
            lua53.dll
            zlib1.dll
        )

    set (QT_LIBS
            Qt5Concurrent.dll
            Qt5Core.dll
            Qt5DBus.dll
            Qt5Gui.dll
            Qt5Multimedia.dll
            Qt5Network.dll
            Qt5Sql.dll
            Qt5Widgets.dll
            Qt5Xml.dll
        )

    set (QT_PLUGINS
            audio
            bearer
            generic
            iconengines
            imageformats
            mediaservice
            platforms
            platformthemes
            playlistformats
            printsupport
            sqldrivers
            styles
        )

    foreach (FILE ${COMMON_LIBS})
        if (EXISTS "${COMMON_LIBS_DIR}/${FILE}")
            list (APPEND LIBS_TO_INSTALL "${COMMON_LIBS_DIR}/${FILE}")
        else ()
            message (STATUS "!!! Missing file ${FILE}")
        endif ()
    endforeach ()

    foreach (FILE ${QT_LIBS})
        if (EXISTS "${QT_LIBS_DIR}/${FILE}")
            list (APPEND LIBS_TO_INSTALL "${QT_LIBS_DIR}/${FILE}")
        else ()
            message (STATUS "!!! Missing file ${FILE}")
        endif ()
    endforeach ()

    foreach (DIR ${QT_PLUGINS})
        if (EXISTS "${QT_PLUGINS_DIR}/${DIR}")
            list (APPEND DIRS_TO_INSTALL "${QT_PLUGINS_DIR}/${DIR}")
        else ()
            message (STATUS "!!! Missing directory ${DIR}")
        endif ()
    endforeach ()

    install (FILES ${LIBS_TO_INSTALL} windows/qt.conf DESTINATION ${BINDIR})
    install (DIRECTORY ${DIRS_TO_INSTALL} DESTINATION ${BINDIR}/plugins)
endif ()