forked from projectM-visualizer/frontend-sdl-cpp
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
169 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,57 @@ | ||
# ToDo: Make directory structure configurable | ||
install(TARGETS projectMSDL | ||
RUNTIME DESTINATION . | ||
RUNTIME DESTINATION ${PROJECTMSDL_BIN_DIR} | ||
COMPONENT projectMSDL | ||
) | ||
|
||
install(FILES ${PROJECTM_CONFIGURATION_FILE} | ||
DESTINATION . | ||
DESTINATION ${PROJECTMSDL_DATA_DIR} | ||
COMPONENT projectMSDL | ||
) | ||
|
||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT ENABLE_FLAT_PACKAGE) | ||
if(ENABLE_DESKTOP_ICON) | ||
install(FILES src/resources/projectMSDL.desktop | ||
DESTINATION ${PROJECTMSDL_DESKTOP_DIR} | ||
COMPONENT projectMSDL | ||
) | ||
|
||
macro(INSTALL_ICON size) | ||
install(FILES src/resources/icons/icon_${size}x${size}.png | ||
DESTINATION ${PROJECTMSDL_ICONS_DIR}/${size}x${size}/apps | ||
RENAME projectMSDL.png | ||
COMPONENT projectMSDL | ||
) | ||
endmacro() | ||
|
||
foreach(size 16 32 48 64 72 96 128 256) | ||
install_icon(${size}) | ||
endforeach() | ||
|
||
endif() | ||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT ENABLE_FLAT_PACKAGE) | ||
set(ICNS_FILE ${CMAKE_BINARY_DIR}/projectMSDL.icns) | ||
execute_process(COMMAND iconutil -c icns -o "${ICNS_FILE}" "${CMAKE_SOURCE_DIR}/src/resources/icons") | ||
|
||
install(FILES ${ICNS_FILE} | ||
DESTINATION ${PROJECTMSDL_DATA_DIR} | ||
COMPONENT projectMSDL | ||
) | ||
endif() | ||
|
||
# Install optional presets | ||
foreach(preset_dir ${PRESET_DIRS}) | ||
install(DIRECTORY ${preset_dir} | ||
DESTINATION "${PROJECTMSDL_PRESETS_DIR}" | ||
COMPONENT projectMSDL | ||
PATTERN *.md EXCLUDE | ||
) | ||
endforeach() | ||
|
||
# Install optional textures | ||
foreach(texture_dir ${TEXTURE_DIRS}) | ||
install(DIRECTORY ${texture_dir} | ||
DESTINATION "${PROJECTMSDL_TEXTURES_DIR}" | ||
COMPONENT projectMSDL | ||
PATTERN *.md EXCLUDE | ||
) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Desktop Entry] | ||
Type=Application | ||
Name=projectM | ||
GenericName=Milkdrop-compatible Music Visualizer | ||
Icon=projectMSDL | ||
TryExec=projectMSDL | ||
Exec=projectMSDL | ||
Terminal=false | ||
Categories=Audio;Video;AudioVideo | ||
StartupWMClass=projectMSDL |