mirror of
https://github.com/RGBCube/serenity
synced 2025-09-13 12:37:59 +00:00
Userland: Properly populate GENERATED_SOURCES
We previously put the generated headers in SOURCES, which did not mark them as GENERATED (and did not produce a proper dependency). This commit moves all generated headers into GENERATED_SOURCES, and removes useless header SOURCES.
This commit is contained in:
parent
c88058cea2
commit
166a905951
54 changed files with 236 additions and 97 deletions
|
@ -10,9 +10,12 @@ set(SOURCES
|
|||
main.cpp
|
||||
Board.cpp
|
||||
BoardWidget.cpp
|
||||
GameOfLifeGML.h
|
||||
Pattern.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
GameOfLifeGML.h
|
||||
)
|
||||
|
||||
serenity_app(GameOfLife ICON app-gameoflife)
|
||||
target_link_libraries(GameOfLife LibGUI LibMain LibDesktop)
|
||||
|
|
|
@ -13,6 +13,9 @@ set(SOURCES
|
|||
Player.cpp
|
||||
ScoreCard.cpp
|
||||
SettingsDialog.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
HeartsGML.h
|
||||
)
|
||||
|
||||
|
|
|
@ -8,12 +8,15 @@ compile_gml(MinesweeperCustomGameWindow.gml MinesweeperCustomGameWindowGML.h min
|
|||
compile_gml(MinesweeperWindow.gml MinesweeperWindowGML.h minesweeper_window_gml)
|
||||
|
||||
set(SOURCES
|
||||
MinesweeperCustomGameWindowGML.h
|
||||
MinesweeperWindowGML.h
|
||||
CustomGameDialog.cpp
|
||||
Field.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
MinesweeperCustomGameWindowGML.h
|
||||
MinesweeperWindowGML.h
|
||||
)
|
||||
|
||||
serenity_app(Minesweeper ICON app-minesweeper)
|
||||
target_link_libraries(Minesweeper LibGUI LibConfig LibMain LibDesktop)
|
||||
|
|
|
@ -9,6 +9,9 @@ compile_gml(Solitaire.gml SolitaireGML.h solitaire_gml)
|
|||
set(SOURCES
|
||||
Game.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
SolitaireGML.h
|
||||
)
|
||||
|
||||
|
|
|
@ -9,6 +9,9 @@ compile_gml(Spider.gml SpiderGML.h spider_gml)
|
|||
set(SOURCES
|
||||
Game.cpp
|
||||
main.cpp
|
||||
)
|
||||
|
||||
set(GENERATED_SOURCES
|
||||
SpiderGML.h
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue