Skip to content

Commit

Permalink
cmake: remove call to qt5_add_resources()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
t-8ch committed Sep 28, 2024
1 parent 30c069b commit 3548b15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ add_subdirectory(pics)
configure_file(${CMAKE_CURRENT_LIST_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h @ONLY)

########### next target ###############
qt5_add_resources(KRAFT_RC_SRC pics/kraft.qrc)

set(kraft_SRCS
attribute.cpp
einheit.cpp
Expand Down Expand Up @@ -119,6 +117,8 @@ set(kraft_SRCS
epcqrcode.cpp

3rdparty/qrcodegen.cpp

pics/kraft.qrc
)

kconfig_add_kcfg_files(kraft_SRCS
Expand Down Expand Up @@ -179,7 +179,7 @@ if(${AKO_PREFIX}Akonadi_FOUND)
)
endif()

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

add_executable(kraft main.cpp)
Expand Down

0 comments on commit 3548b15

Please sign in to comment.