Skip to content

Commit 5ce2903

Browse files
committed
cmake: remove call to qt5_add_resources()
CMake can automatically compile resources when added to a targets sources. This avoids a call to a qt5 specific API which would not work on qt6. Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
1 parent 30c069b commit 5ce2903

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ add_subdirectory(pics)
44
configure_file(${CMAKE_CURRENT_LIST_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)
55

66
########### next target ###############
7-
qt5_add_resources(KRAFT_RC_SRC pics/kraft.qrc)
8-
97
set(kraft_SRCS
108
attribute.cpp
119
einheit.cpp
@@ -119,6 +117,8 @@ set(kraft_SRCS
119117
epcqrcode.cpp
120118

121119
3rdparty/qrcodegen.cpp
120+
121+
pics/kraft.qrc
122122
)
123123

124124
kconfig_add_kcfg_files(kraft_SRCS
@@ -179,7 +179,7 @@ if(${AKO_PREFIX}Akonadi_FOUND)
179179
)
180180
endif()
181181

182-
add_library(kraftlib STATIC ${KRAFT_RC_SRC} ${kraft_SRCS})
182+
add_library(kraftlib STATIC ${kraft_SRCS})
183183
target_compile_options(kraftlib PRIVATE -Wall -Wno-suggest-override)
184184

185185
add_executable(kraft main.cpp)

0 commit comments

Comments
 (0)