Skip to content

Commit

Permalink
Added proper icon for the Windows executables
Browse files Browse the repository at this point in the history
Closes #320.
  • Loading branch information
olofson committed Jan 17, 2017
1 parent 58e457f commit 318fccf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions kobord.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 ICON "koboredux.ico"
Binary file added koboredux.ico
Binary file not shown.
11 changes: 10 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ include_directories(${SDL2IMAGE_INCLUDE_DIRS})
pkg_check_modules(AUDIALITY2 REQUIRED audiality2)
include_directories(${AUDIALITY2_INCLUDE_DIRS})

add_executable(kobord WIN32 MACOSX_BUNDLE ${sources})
set(RES_FILES "")
if(MINGW)
set(RES_FILES "${KOBOREDUX_SOURCE_DIR}/kobord.rc")
set(CMAKE_RC_COMPILER_INIT windres)
ENABLE_LANGUAGE(RC)
SET(CMAKE_RC_COMPILE_OBJECT
"<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>")
endif(MINGW)

add_executable(kobord WIN32 MACOSX_BUNDLE ${sources} ${RES_FILES})

target_link_libraries(kobord ${SDL2_LIBRARIES} ${SDL2IMAGE_LIBRARIES}
${AUDIALITY2_LIBRARIES})
Expand Down

0 comments on commit 318fccf

Please sign in to comment.