Skip to content

Commit 6e1b5f7

Browse files
authored
Compile the resource files with the GUI executables (#8412)
- The .rc files need to be compiled as part of the exe generation. To get, among other things, the icons.
1 parent 0b740e7 commit 6e1b5f7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

OMNotebook/OMNotebook/OMNotebookGUI/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ set(OMNOTEBOOKLIB_HEADERS application.h
8888
indent.h)
8989

9090

91-
add_executable(OMNotebook ${OMNOTEBOOKLIB_SOURCES} ${OMNOTEBOOKLIB_HEADERS})
91+
add_executable(OMNotebook ${OMNOTEBOOKLIB_SOURCES} ${OMNOTEBOOKLIB_HEADERS} rc_omnotebook.rc)
9292
target_compile_definitions(OMNotebook PRIVATE OMNOTEBOOKLIB_MOC_INCLUDE)
9393

9494
target_include_directories(OMNotebook PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})

OMPlot/OMPlot/OMPlotGUI/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ target_link_libraries(OMPlotLib PUBLIC omc::simrt::runtime)
4040
target_link_options(OMPlotLib PRIVATE -Wl,--no-undefined)
4141

4242

43-
add_executable(OMPlot main.cpp)
43+
add_executable(OMPlot main.cpp rc_omplot.rc)
4444
target_link_libraries(OMPlot PRIVATE OMPlotLib)
4545

4646
install(TARGETS OMPlotLib)

OMShell/OMShell/OMShellGUI/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ target_link_libraries(OMShellLib PUBLIC OpenModelicaCompiler)
2222
target_link_options(OMShellLib PRIVATE -Wl,--no-undefined)
2323

2424

25-
add_executable(OMShell main.cpp)
25+
add_executable(OMShell main.cpp rc_omshell.rc)
2626
target_link_libraries(OMShell PRIVATE OMShellLib)
2727

2828
install(TARGETS OMShellLib)

0 commit comments

Comments
 (0)