--- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -65,6 +65,9 @@ add_executable(Flameshot::flameshot ALIAS flameshot) +# Follow external\Qt-Color-Widgets\CMakeLists.txt +add_definitions(-DQTCOLORWIDGETS_STATICALLY_LINKED) + if(FLAMESHOT_ICON) target_compile_definitions(flameshot PUBLIC FLAMESHOT_ICON="${FLAMESHOT_ICON}") endif()