mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
Build+TextEditor: Add a compile_json_gui() CMake helper
This makes it easier to include JSON GUI declarations in any app. :^)
This commit is contained in:
parent
119a0c5dee
commit
f67c876df0
2 changed files with 15 additions and 6 deletions
|
@ -1,14 +1,10 @@
|
|||
compile_json_gui(MainWindow.json MainWindowUI.h main_window_ui_json)
|
||||
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
TextEditorWidget.cpp
|
||||
MainWindowUI.h
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT MainWindowUI.h
|
||||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/MainWindow.json
|
||||
COMMAND ${write_if_different} MainWindowUI.h ${CMAKE_SOURCE_DIR}/Meta/text-to-cpp-string.sh main_window_ui_json ${CMAKE_CURRENT_SOURCE_DIR}/MainWindow.json
|
||||
)
|
||||
|
||||
serenity_bin(TextEditor)
|
||||
target_link_libraries(TextEditor LibWeb LibMarkdown LibGUI LibDesktop)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue