Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure icon png available for win32 #2012

Merged
merged 2 commits into from
Jul 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 32 additions & 26 deletions cmake/FreecivInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@
# Always install the base documentation
install(
FILES
AUTHORS
COPYING
INSTALL
${CMAKE_SOURCE_DIR}/AUTHORS
${CMAKE_SOURCE_DIR}/COPYING
${CMAKE_SOURCE_DIR}/INSTALL
DESTINATION ${CMAKE_INSTALL_DOCDIR}
COMPONENT freeciv21)

# Always install the Licenses
install(
FILES
dist/licenses/0-MSYS2-INDEX.txt
dist/licenses/APACHE-2.txt
dist/licenses/BSD-2-CLAUSE.txt
dist/licenses/BSD-3-CLAUSE.txt
dist/licenses/BZ2.txt
dist/licenses/FTL.txt
dist/licenses/GPL2.txt
dist/licenses/GPL3.txt
dist/licenses/IMAGEMAGICK.txt
dist/licenses/LGPL-2.0-ONLY.txt
dist/licenses/LGPL-2.0-OR-LATER.txt
dist/licenses/LGPL-3.0-ONLY.txt
dist/licenses/LICENSEREF-KDE-ACCEPTED-LGPL.txt
dist/licenses/MAGICKWAND.txt
dist/licenses/MIT.txt
dist/licenses/OPENSSL.txt
dist/licenses/PNG.txt
dist/licenses/UNICODE.txt
dist/licenses/ZLIB.txt
${CMAKE_SOURCE_DIR}/dist/licenses/0-MSYS2-INDEX.txt
${CMAKE_SOURCE_DIR}/dist/licenses/APACHE-2.txt
${CMAKE_SOURCE_DIR}/dist/licenses/BSD-2-CLAUSE.txt
${CMAKE_SOURCE_DIR}/dist/licenses/BSD-3-CLAUSE.txt
${CMAKE_SOURCE_DIR}/dist/licenses/BZ2.txt
${CMAKE_SOURCE_DIR}/dist/licenses/FTL.txt
${CMAKE_SOURCE_DIR}/dist/licenses/GPL2.txt
${CMAKE_SOURCE_DIR}/dist/licenses/GPL3.txt
${CMAKE_SOURCE_DIR}/dist/licenses/IMAGEMAGICK.txt
${CMAKE_SOURCE_DIR}/dist/licenses/LGPL-2.0-ONLY.txt
${CMAKE_SOURCE_DIR}/dist/licenses/LGPL-2.0-OR-LATER.txt
${CMAKE_SOURCE_DIR}/dist/licenses/LGPL-3.0-ONLY.txt
${CMAKE_SOURCE_DIR}/dist/licenses/LICENSEREF-KDE-ACCEPTED-LGPL.txt
${CMAKE_SOURCE_DIR}/dist/licenses/MAGICKWAND.txt
${CMAKE_SOURCE_DIR}/dist/licenses/MIT.txt
${CMAKE_SOURCE_DIR}/dist/licenses/OPENSSL.txt
${CMAKE_SOURCE_DIR}/dist/licenses/PNG.txt
${CMAKE_SOURCE_DIR}/dist/licenses/UNICODE.txt
${CMAKE_SOURCE_DIR}/dist/licenses/ZLIB.txt
DESTINATION ${CMAKE_INSTALL_DOCDIR}/licenses
COMPONENT freeciv21)

Expand All @@ -41,12 +41,18 @@ if(WIN32 OR MSYS OR MINGW)
# Custom command files to run the applications
install(
FILES
dist/freeciv21-server.cmd
data/icons/128x128/freeciv21-client.ico
data/icons/128x128/freeciv21-modpack.ico
data/icons/128x128/freeciv21-server.ico
${CMAKE_SOURCE_DIR}/dist/freeciv21-server.cmd
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-client.ico
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-modpack.ico
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-server.ico
DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT freeciv21)

install(
FILES
${CMAKE_SOURCE_DIR}/data/icons/128x128/freeciv21-client.png
DESTINATION ${CMAKE_INSTALL_BINDIR}/data/misc
COMPONENT freeciv21)
endif()

# MSYS2 and MINGW specific installation
Expand Down
Loading