Skip to content

Commit

Permalink
Added icon for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Sygmei committed Oct 9, 2018
1 parent ed9760d commit 84c5d53
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ if (NOT DEFINED BUILD_PLAYER)
endif()

configure_obengine_git()
if (WIN32)
file(GLOB OBENGINE_ICON ${CMAKE_SOURCE_DIR}/resources/resource.rc)
else()
set(OBENGINE_ICON "")
endif()

if (BUILD_PLAYER)
add_subdirectory(src/Player)
Expand Down
Binary file added resources/icon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions resources/resource.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AAA ICON icon.ico
2 changes: 1 addition & 1 deletion src/Dev/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ file(GLOB_RECURSE OBEDEV_SOURCES
file(GLOB_RECURSE OBEPLAYER_GAME_SOURCE
${ObEngine_SOURCE_DIR}/src/Player/Modes/Game.cpp)

add_executable(ObEngineDev ${OBEDEV_HEADERS} ${OBEDEV_SOURCES} ${OBEPLAYER_GAME_SOURCE})
add_executable(ObEngineDev ${OBEDEV_HEADERS} ${OBEDEV_SOURCES} ${OBEPLAYER_GAME_SOURCE} ${OBENGINE_ICON})

compile_obengine_git_definitions()

Expand Down
2 changes: 1 addition & 1 deletion src/Player/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ file(GLOB_RECURSE OBEPLAYER_SOURCES "${ObEngine_SOURCE_DIR}/src/Player/*.cpp")
if (BUILD_ANDROID)
add_library(ObEnginePlayer SHARED ${OBEPLAYER_HEADERS} ${OBEPLAYER_SOURCES})
else()
add_executable(ObEnginePlayer ${OBEPLAYER_HEADERS} ${OBEPLAYER_SOURCES})
add_executable(ObEnginePlayer ${OBEPLAYER_HEADERS} ${OBEPLAYER_SOURCES} ${OBENGINE_ICON})
endif()

compile_obengine_git_definitions()
Expand Down

0 comments on commit 84c5d53

Please sign in to comment.