File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed
Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,19 @@ configure_file(ngscopeclient-version.h.in ngscopeclient-version.h)
1111# use custom config for imguifiledialog
1212add_compile_definitions (CUSTOM_IMGUIFILEDIALOG_CONFIG= "../ngscopeclient/IGFDConfig.h" )
1313
14+ if (MINGW)
15+ set (CMAKE_RC_COMPILER_INIT windres)
16+ ENABLE_LANGUAGE (RC )
17+ SET (CMAKE_RC_COMPILE_OBJECT
18+ "<CMAKE_RC_COMPILER> <FLAGS> -O coff <DEFINES> -i <SOURCE> -o <OBJECT>" )
19+ endif (MINGW )
20+
21+ if (WINDOWS)
22+ set (RC_FILES "ngscopeclient.rc" )
23+ else ()
24+ set (RC_FILES "" )
25+ endif ()
26+
1427###############################################################################
1528#C++ compilation
1629add_executable (ngscopeclient
@@ -92,6 +105,8 @@ add_executable(ngscopeclient
92105 Workspace.cpp
93106
94107 main.cpp
108+
109+ ${RC_FILES}
95110)
96111
97112add_custom_target (
Original file line number Diff line number Diff line change 1+ 0 ICON DISCARDABLE "icons\win\ngscopeclient.ico"
You can’t perform that action at this time.
0 commit comments