# Where `make install` (and the packages made with CPack) put each part of V-Gears. # # Linux and other Unix systems use the usual layout of the prefix: # /bin/v-gears, /bin/v-gears-installer # /share/v-gears/ The data template: plugins.cfg, resources.cfg, data/... # /share/doc/v-gears/ Documentation and license # /share/applications/ Desktop files, and the icons in share/icons and share/pixmaps # # Windows and macOS use a single portable folder: # /v-gears(.exe), /v-gears-installer(.exe) # /data/ The data template # / Documentation and license # # The game finds the template in both layouts (see src/common/DataDirectory.h), and copies it to the data directory # of the user the first time it runs. include(GNUInstallDirs) if(WIN32 OR APPLE) set(VGEARS_INSTALL_BINDIR ".") set(VGEARS_INSTALL_TEMPLATEDIR "data") set(VGEARS_INSTALL_DOCDIR ".") else() set(VGEARS_INSTALL_BINDIR "${CMAKE_INSTALL_BINDIR}") set(VGEARS_INSTALL_TEMPLATEDIR "${CMAKE_INSTALL_DATADIR}/v-gears") set(VGEARS_INSTALL_DOCDIR "${CMAKE_INSTALL_DATAROOTDIR}/doc/v-gears") endif()