1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Add win32 resource file

This commit is contained in:
Mathieu Schroeter 2017-02-23 19:35:00 +01:00
parent a39863af6c
commit 10ba73ea0a
3 changed files with 14 additions and 1 deletions

View File

@ -19,8 +19,12 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" ST
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=c++11 -L${CMAKE_INSTALL_PREFIX}/lib")
endif ()
file (GLOB_RECURSE sources src/*.cpp src/*.h)
file (GLOB_RECURSE sources src/*.cpp src/*.h src/win32/*.rc)
file (GLOB_RECURSE po resources/po/*.po)
if (MINGW)
file (GLOB_RECURSE rc src/win32/*.rc)
list (APPEND sources ${rc})
endif (MINGW)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set (CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++")
@ -34,6 +38,14 @@ file (COPY resources/movie DESTINATION share/planetblupi)
file (COPY resources/sound DESTINATION share/planetblupi)
file (COPY resources/music DESTINATION share/planetblupi)
# Windows stuff
if (MINGW)
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)
# Dependencies
find_package (Intl REQUIRED)

View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

1
src/win32/planetblupi.rc Normal file
View File

@ -0,0 +1 @@
id ICON "planetblupi.ico"