Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
win32: add rc file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Lord committed Jan 21, 2018
1 parent 9914796 commit 42c2cbe
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
13 changes: 6 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,18 @@ set(LIBS_DIR "" CACHE FILEPATH "Library directory")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)

# if(WIN32)
# set(GUI_TYPE WIN32)
# endif(WIN32)
# if(APPLE)
# set(GUI_TYPE MACOSX_BUNDLE)
# endif(APPLE)
if(WIN32)
set(RESOURCE_FILE ${PROJECT_SOURCE_DIR}/res/yachie.rc)
else()
set(RESOURCE_FILE)
endif(WIN32)

set_property(GLOBAL PROPERTY VS_STARTUP_PROJECT yachie)

include_directories(${INCLUDE_DIR})
link_directories(${LIBS_DIR})

add_executable(yachie ${GUI_TYPE} src/main.cpp src/Chip8.cpp src/Chip8.h src/Display.cpp src/Display.h src/tinyfiledialogs.c src/tinyfiledialogs.h)
add_executable(yachie ${RESOURCE_FILE} src/main.cpp src/Chip8.cpp src/Chip8.h src/Display.cpp src/Display.h src/tinyfiledialogs.c src/tinyfiledialogs.h)

target_link_libraries (yachie
sfml-graphics
Expand Down
Binary file added res/yachie.ico
Binary file not shown.
24 changes: 24 additions & 0 deletions res/yachie.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
IDI_ICON1 ICON "yachie.ico"
1 VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904E4"
BEGIN
VALUE "CompanyName", "Sparkpin"
VALUE "FileDescription", "Chip-8 Emulator"
VALUE "FileVersion", "1.0"
VALUE "InternalName", "yachie"
VALUE "LegalCopyright", "William Lord"
VALUE "OriginalFilename", "yachie.exe"
VALUE "ProductName", "Yachie"
VALUE "ProductVersion", "1.0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1252
END
END

0 comments on commit 42c2cbe

Please sign in to comment.