diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index cfe7631e8..c9367cf5f 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -6,6 +6,14 @@ SET(CHECKCLI_SRCS main.cpp ) +# Add Windows resource file +if (WIN32) + SET(CHECKCLI_SRCS + ${CHECKCLI_SRCS} + cppcheck.rc + ) +endif (WIN32) + # Libraries to link set(CHECK_LIBS checklib diff --git a/gui/CMakeLists.txt b/gui/CMakeLists.txt index 8f01ccb7b..e1c397fdc 100644 --- a/gui/CMakeLists.txt +++ b/gui/CMakeLists.txt @@ -52,6 +52,14 @@ SET(CHECKGUI_SRCS xmlreport.cpp ) +# Add Windows resource file +if (WIN32) + SET(CHECKGUI_SRCS + ${CHECKGUI_SRCS} + cppcheck-gui.rc + ) +endif (WIN32) + # UI files SET(CHECK_UIS about.ui