mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix transport update handling, add desktop/icon resources, and clean repo artifacts
This commit is contained in:
parent
0a51ec8dda
commit
c20d5441d0
29 changed files with 284 additions and 41 deletions
|
|
@ -1,5 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.15)
|
||||
project(wowee VERSION 1.0.0 LANGUAGES CXX)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
|
@ -264,8 +265,13 @@ set(WOWEE_HEADERS
|
|||
include/ui/talent_screen.hpp
|
||||
)
|
||||
|
||||
set(WOWEE_PLATFORM_SOURCES)
|
||||
if(WIN32)
|
||||
list(APPEND WOWEE_PLATFORM_SOURCES resources/wowee.rc)
|
||||
endif()
|
||||
|
||||
# Create executable
|
||||
add_executable(wowee ${WOWEE_SOURCES} ${WOWEE_HEADERS})
|
||||
add_executable(wowee ${WOWEE_SOURCES} ${WOWEE_HEADERS} ${WOWEE_PLATFORM_SOURCES})
|
||||
|
||||
# Include directories
|
||||
target_include_directories(wowee PRIVATE
|
||||
|
|
@ -341,6 +347,22 @@ install(TARGETS wowee
|
|||
ARCHIVE DESTINATION lib
|
||||
)
|
||||
|
||||
# Linux desktop integration (launcher + icon)
|
||||
if(UNIX AND NOT APPLE)
|
||||
set(WOWEE_LINUX_ICON_PATH "${CMAKE_INSTALL_FULL_DATAROOTDIR}/icons/hicolor/256x256/apps/wowee.png")
|
||||
configure_file(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/resources/wowee.desktop.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/wowee.desktop
|
||||
@ONLY
|
||||
)
|
||||
|
||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/wowee.desktop
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/applications)
|
||||
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/assets/Wowee.png
|
||||
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/icons/hicolor/256x256/apps
|
||||
RENAME wowee.png)
|
||||
endif()
|
||||
|
||||
# Print configuration summary
|
||||
message(STATUS "")
|
||||
message(STATUS "Wowee Configuration:")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue