mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-16 19:54:13 +02:00
ddbd1d8d75
QET_MIME_PACKAGE_PATH was "../share/mime/packages/", a path relative to CMAKE_INSTALL_PREFIX. This only worked by accident with the old default prefix (/usr/local -> ../share resolves to /usr/share/mime, the conventional system location regardless of app prefix). With -DCMAKE_INSTALL_PREFIX=/usr (as used by Debian/Ubuntu packaging), the same "../share" escapes /usr entirely, landing at /share/mime instead of /usr/share/mime, which breaks dh_install (file not found under usr/) and would silently install the mime package definition outside any path desktop environments actually scan. Drop the "../" so the mime package path stays under the install prefix, matching standard practice (/usr/share/mime/packages or /usr/local/share/mime/packages).
69 lines
2.9 KiB
CMake
69 lines
2.9 KiB
CMake
# Copyright 2006 The QElectroTech Team
|
|
# This file is part of QElectroTech.
|
|
#
|
|
# QElectroTech is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# QElectroTech is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
# Paths used for compilation and installation of QET
|
|
|
|
message(" - paths_compilation_installation")
|
|
|
|
if(UNIX AND NOT APPLE)
|
|
# for Linux, BSD, Solaris, Minix
|
|
set(COMPIL_PREFIX "/usr/local/")
|
|
set(INSTALL_PREFIX "/usr/local/")
|
|
set(QET_BINARY_PATH "bin/")
|
|
set(QET_COMMON_COLLECTION_PATH "share/qelectrotech/elements/")
|
|
set(QET_COMMON_TBT_PATH "share/qelectrotech/titleblocks/")
|
|
set(QET_LANG_PATH "share/qelectrotech/lang/")
|
|
set(QET_EXAMPLES_PATH "share/qelectrotech/examples/")
|
|
set(QET_LICENSE_PATH "doc/qelectrotech/")
|
|
set(QET_MIME_PACKAGE_PATH "share/mime/packages/")
|
|
set(QET_DESKTOP_PATH "share/applications/")
|
|
set(QET_ICONS_PATH "share/icons/hicolor/")
|
|
set(QET_MAN_PATH "man/")
|
|
set(QET_APPDATA_PATH "share/appdata")
|
|
endif()
|
|
|
|
if(APPLE)
|
|
# for MacOS X or iOS, watchOS, tvOS (since 3.10.3)
|
|
set(COMPIL_PREFIX "./")
|
|
set(INSTALL_PREFIX "/usr/local/")
|
|
set(QET_BINARY_PATH "bin/")
|
|
set(QET_COMMON_COLLECTION_PATH "../Resources/elements/")
|
|
set(QET_COMMON_TBT_PATH "../Resources/titleblocks/")
|
|
set(QET_LANG_PATH "../Resources/lang/")
|
|
set(QET_EXAMPLES_PATH "share/qelectrotech/examples/")
|
|
set(QET_LICENSE_PATH "doc/qelectrotech/")
|
|
set(QET_DESKTOP_PATH "share/applications/")
|
|
set(QET_ICONS_PATH "share/icons/hicolor/")
|
|
set(QET_MAN_PATH "man/")
|
|
set(ICON "ico/mac_icon/qelectrotech.icns")
|
|
endif()
|
|
|
|
if(WIN32)
|
|
# for Windows operating system in general
|
|
set(COMPIL_PREFIX "./")
|
|
set(INSTALL_PREFIX "./")
|
|
set(QET_BINARY_PATH "./")
|
|
set(QET_COMMON_COLLECTION_PATH "elements/")
|
|
set(QET_COMMON_TBT_PATH "titleblocks/")
|
|
# "lang/" and not "l10n/": that is where every Windows packaging actually
|
|
# puts the .qm files (see build-aux/windows/QElectroTech.wxs and the
|
|
# windows-build workflow), and what the shortcuts pass as --lang-dir.
|
|
set(QET_LANG_PATH "lang/")
|
|
set(QET_LICENSE_PATH "./")
|
|
# Liste des ressources Windows
|
|
#RC_FILE = qelectrotech.rc
|
|
endif()
|