Commit c9c95275 authored by Julian Helfferich's avatar Julian Helfferich 💬
Browse files

Create variable for ecm_add_app_icon

From the ecm_add_app_icon documentation:

  The given icons [...] will be added to the executable target whose
  sources are specified by <sources_var> [...]

It will probably fail with the sources_var being defined in the
subdirectory and used for the library. In any way, the new version
is cleaner and therefore preferable in any case.
parent b91d0b69
Pipeline #47939 passed with stage
in 3 minutes and 45 seconds
......@@ -63,12 +63,14 @@ endif()
ecm_setup_version(${RELEASE_SERVICE_VERSION} VARIABLE_PREFIX KBLOCKS VERSION_HEADER kblocks_version.h)
set(kblocks_main src/main.cpp)
file(GLOB ICONS_SRCS "*-apps-kblocks.png")
ecm_add_app_icon(kblocks_SRCS ICONS ${ICONS_SRCS})
ecm_add_app_icon(kblocks_main ICONS ${ICONS_SRCS})
add_subdirectory(src)
add_executable(kblocks src/main.cpp)
add_executable(kblocks ${kblocks_main})
target_link_libraries(kblocks
KBlocksCore
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment