Skip to content

Commit

Permalink
CMake: Use the generated logo in the crash reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
dscharrer committed May 17, 2016
1 parent 2bfdb69 commit e41e902
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Expand Up @@ -1282,8 +1282,14 @@ if(ARX_HAVE_CRASHREPORTER)
tools/crashreporter/qhexedit/QHexEdit.h
tools/crashreporter/qhexedit/QHexEditPrivate.h
)

file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/tools/crashreporter/resources")
configure_file(
tools/crashreporter/resources/CrashReporter.qrc.in
${CMAKE_BINARY_DIR}/tools/crashreporter/resources/CrashReporter.qrc
)
qt_add_resources(arxcrashreporter_Qt_SOURCES
tools/crashreporter/resources/CrashReporter.qrc
${CMAKE_BINARY_DIR}/tools/crashreporter/resources/CrashReporter.qrc
)

list(APPEND arxcrashreporter_SOURCES ${arxcrashreporter_Qt_SOURCES})
Expand Down
7 changes: 0 additions & 7 deletions tools/crashreporter/resources/CrashReporter.qrc

This file was deleted.

7 changes: 7 additions & 0 deletions tools/crashreporter/resources/CrashReporter.qrc.in
@@ -0,0 +1,7 @@
<RCC>
<qresource prefix="/">
<file alias="failure.png">${CMAKE_SOURCE_DIR}/tools/crashreporter/resources/failure.png</file>
<file alias="success.png">${CMAKE_SOURCE_DIR}/tools/crashreporter/resources/success.png</file>
<file alias="logo.png">${arx-libertatis-logo-58.png}</file>
</qresource>
</RCC>
Binary file removed tools/crashreporter/resources/logo.png
Binary file not shown.

0 comments on commit e41e902

Please sign in to comment.