This commit is contained in:
tooomm 2026-09-13 13:23:03 +02:00
parent fd82b140a8
commit 4ba06597f9
23 changed files with 57 additions and 14 deletions

View file

@ -1,9 +1,12 @@
# CMakeLists for cockatrice directory
# CMakeLists for "cockatrice" directory
#
# provides the cockatrice binary
# Provides the Cockatrice binary
project(Cockatrice VERSION "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
# ------------------------
# Paths and directories
# ------------------------
set(cockatrice_SOURCES
${VERSION_STRING_CPP}
# sort by alphabetical order, so that there is no debate about where to add new sources to the list

View file

@ -1,14 +1,13 @@
# CMakeLists for themes directory
# CMakeLists for ./cockatrice/themes directory
#
# add themes subfolders
# Add themes subfolders
set(defthemes Default Fabric Fusion Leather Plasma VelvetMarble)
if(UNIX)
if(APPLE)
if(APPLE) # macOS
install(DIRECTORY ${defthemes} DESTINATION Cockatrice.app/Contents/Resources/themes/)
else()
# Assume linux
else() # Assume Linux
install(DIRECTORY ${defthemes} DESTINATION share/cockatrice/themes/)
endif()
elseif(WIN32)