CMake - add Windows resource files to build.
This commit is contained in:
parent
401afea2f2
commit
d51520d656
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue