Skip to content

Commit

Permalink
[xmake] use windows icon
Browse files Browse the repository at this point in the history
  • Loading branch information
momentarylapse committed Oct 25, 2024
1 parent f903bb9 commit 2d58970
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ if(GTK4_FOUND)
list(APPEND GTK4_OR_GTK3_FOUND "gtk4")
endif()
pkg_check_modules(GTK+30 gtk+-3.0)
if(GTK3_FOUND)
if(GTK+30_FOUND)
list(APPEND GTK4_OR_GTK3_FOUND "gtk3")
endif()
if(GTK4_OR_GTK3_FOUND)
Expand Down Expand Up @@ -275,7 +275,7 @@ endif()
# lib: gl (optional)
set(LIB_GL_ENABLED true CACHE BOOL "Use gl library?")
find_package(OpenGL)
if(OPENGL_FOUND AND NOT APPLE)
if(OPENGL_FOUND AND NOT APPLE AND NOT WIN32)
else()
set(LIB_GL_ENABLED false CACHE BOOL "gl library not found" FORCE)
endif()
Expand Down Expand Up @@ -830,7 +830,8 @@ add_executable(tsunami WIN32
src/view/TsunamiWindow.cpp
src/Playback.cpp
src/Session.cpp
src/Tsunami.cpp)
src/Tsunami.cpp
src/tsunami.rc)
target_include_directories(tsunami PUBLIC ${INCLUDE_DIRECTORIES})
target_link_directories(tsunami PUBLIC ${LINK_DIRECTORIES})
target_compile_options(tsunami PUBLIC ${COMPILE_OPTIONS})
Expand Down
3 changes: 3 additions & 0 deletions src/tsunami.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
IDI_ICON1 ICON DISCARDABLE "../static/icons/tsunami.ico"


0 comments on commit 2d58970

Please sign in to comment.