Skip to content

Commit

Permalink
"different way to bring in resources; updates QUItCoding#53"
Browse files Browse the repository at this point in the history
  • Loading branch information
martukas committed Oct 15, 2021
1 parent 92630b7 commit e39bb02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
mkdir build
cd build
cmake -DQNANO_WIDGETS=1 -DQNANO_QUICK=1 ..
cmake ..
- name: Build library
run: |
cd build
Expand Down
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ find_package(QT NAMES Qt5 Qt6 Qt4 COMPONENTS Core QUIET)
message(STATUS "Detected QT major version = ${QT_VERSION_MAJOR}")
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui REQUIRED)

# Auto generate moc files
set(CMAKE_AUTORCC ON)

set(${this_target}_sources
libqnanopainter
libqnanopainter/qnanopainter.cpp
Expand Down Expand Up @@ -100,8 +103,9 @@ set(${this_target}_headers
libqnanopainter/nanovg/nanovg.h
)

qt_add_resources(${this_target}_resources
libqnanopainter/libqnanopainterdata.qrc)
set(${this_target}_resources
libqnanopainter/libqnanopainterdata.qrc
)

if(${QNANO_BUILD_GLES_BACKENDS})
message(STATUS "QNanoPainter: Including OpenGL ES backends")
Expand Down

0 comments on commit e39bb02

Please sign in to comment.