Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Build resource file as part of the normal build procedure (#53)
Browse files Browse the repository at this point in the history
The code contained a generated cpp file, which was not updated if the
embedded resources changed. Fix this, so that changing e.g. the shaders
will actually work.

Co-authored-by: Thomas Bleher <thomas.tb.bleher@bmw.de>
  • Loading branch information
tbleher and tbleher authored Jun 25, 2020
1 parent 1210e8c commit ccfd0ec
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 191 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ set(CMAKE_CXX_STANDARD 14)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)

find_package(Qt5 COMPONENTS Core Gui OpenGL Widgets Xml Network REQUIRED)

Expand Down Expand Up @@ -42,11 +43,11 @@ set(SOURCES
src/appconfig.cpp
src/glpoint.cpp
src/gltrafficsign.cpp
src/qrc_resources.cpp
src/osiparser.cpp
src/glfieldofview.cpp
src/fmureceiver.cpp
src/utils.cpp
resources.qrc
)

set(HEADERS
Expand Down
7 changes: 7 additions & 0 deletions resources.qrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!DOCTYPE RCC><RCC version="1.0">
<qresource>
<file>resources/Shaders/FragmentShader.frag</file>
<file>resources/Shaders/VertexShader.vert</file>
<file>resources/Images/Grid.png</file>
</qresource>
</RCC>
190 changes: 0 additions & 190 deletions src/qrc_resources.cpp

This file was deleted.

0 comments on commit ccfd0ec

Please sign in to comment.