-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathCMakeLists.txt
740 lines (698 loc) · 30.7 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
cmake_minimum_required(VERSION 3.17)
project(pf_imgui
VERSION 0.9.0)
if (MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29.30129 AND CMAKE_VERSION VERSION_GREATER 3.20.3)
set(CMAKE_CXX_STANDARD 23)
else ()
set(CMAKE_CXX_STANDARD 20)
endif ()
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
list(APPEND flags "/std:c++latest" "/W4" "/wd4201" "/wd4996")
else ()
list(APPEND flags "-fconcepts" "-fconcepts-diagnostics-depth=10" "-Werror=return-type" "-fcoroutines"
"-Wall" "-Wextra" "-Werror" "-Wpedantic" "-Wno-unknown-pragmas" "-Wno-unused-function"
"-Wpointer-arith" "-Wno-cast-qual" "-Wno-type-limits" "-fno-strict-aliasing" "-Wno-format-security" "-Wshadow")
endif ()
if (CMAKE_BUILD_TYPE MATCHES Debug)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
list(APPEND flags "/WX")
endif ()
elseif (CMAKE_BUILD_TYPE MATCHES Release)
if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
list(APPEND flags "/O2")
else ()
list(APPEND flags "-O3")
endif ()
elseif (CMAKE_BUILD_TYPE MATCHES ASAN)
list(APPEND flags "-fno-omit-frame-pointer" "-fsanitize=address")
elseif (CMAKE_BUILD_TYPE MATCHES LSAN)
list(APPEND flags "-fno-omit-frame-pointer" "-fsanitize=leak")
elseif (CMAKE_BUILD_TYPE MATCHES UBSAN)
list(APPEND flags "-fsanitize=undefined")
elseif (CMAKE_BUILD_TYPE MATCHES TSAN)
list(APPEND flags "-fsanitize=thread")
endif ()
if (USE_LLD_LINKER)
list(APPEND flags "-fuse-ld=lld")
elseif (USE_GOLD_LINKER)
list(APPEND flags "-fuse-ld=gold")
endif ()
set(IMGUI_FILE_DIALOG_DIR src/include/ImGuiFileDialog)
set(IMGUI_FLAME_GRAPH_DIR src/include/ImGuiFlamegraph)
find_package(pf_common CONFIG REQUIRED)
find_package(tomlplusplus CONFIG REQUIRED)
find_package(range-v3 CONFIG REQUIRED)
find_package(magic_enum CONFIG REQUIRED)
find_package(glm CONFIG REQUIRED)
find_package(fmt CONFIG REQUIRED)
include_directories(src/include/DearWidgets)
include_directories(src/include/implot)
include_directories(src/include/imgui-knobs)
include_directories(src/include/imgui)
include_directories(src/include/imgui_markdown)
include_directories(src/include/imgui_memory_editor)
include_directories(src/include/imgInspect)
include_directories(src/include/ImGuiIcons)
include_directories(src/include/imgui_notify)
include_directories(src/include/imgui-command-palette)
include_directories(src/include/imgui_addons/)
include_directories(src/include/imgui-node-editor/)
include_directories(src/include/imgui_curve_editor/)
include_directories(src/include/imgui_color_gradient/)
include_directories(src/include/ringbuffer/)
include_directories(src/include/ImGuizmo/)
include_directories(${IMGUI_FILE_DIALOG_DIR})
include_directories(${IMGUI_FLAME_GRAPH_DIR})
include_directories(${implot_SOURCE_DIR})
set(SOURCES
src/pf_imgui/ImGuiInterface.cpp
src/pf_imgui/elements/Button.cpp
src/pf_imgui/elements/Checkbox.cpp
src/pf_imgui/dialogs/ModalDialog.cpp
src/pf_imgui/elements/Expander.cpp
src/pf_imgui/elements/Image.cpp
src/pf_imgui/elements/InputText.cpp
src/pf_imgui/elements/MenuBars.cpp
src/pf_imgui/elements/plots/SimplePlot.cpp
src/pf_imgui/elements/plots/Plot.cpp
src/pf_imgui/elements/RadioButton.cpp
src/pf_imgui/elements/RadioGroup.cpp
src/pf_imgui/elements/TabBar.cpp
src/pf_imgui/elements/SliderAngle.cpp
src/pf_imgui/elements/Text.cpp
src/pf_imgui/elements/Tree.cpp
src/pf_imgui/elements/Separator.cpp
src/pf_imgui/elements/Selectable.cpp
src/pf_imgui/elements/Range2D.cpp
src/pf_imgui/dialogs/Window.cpp
src/pf_imgui/elements/Tooltip.cpp
src/pf_imgui/dialogs/FileDialog.cpp
src/pf_imgui/elements/FlameGraph.cpp
src/pf_imgui/elements/plots/PieChart.cpp
src/pf_imgui/elements/plots/types/PlotDataBase.cpp
src/pf_imgui/elements/plots/types/Line.cpp
src/pf_imgui/elements/plots/types/Stairs.cpp
src/pf_imgui/elements/plots/types/Shaded.cpp
src/pf_imgui/elements/plots/types/Stems.cpp
src/pf_imgui/elements/plots/types/HeatMap.cpp
src/pf_imgui/elements/plots/types/Digital.cpp
src/pf_imgui/elements/MarkdownText.cpp
src/pf_imgui/interface/ElementContainer.cpp
src/pf_imgui/interface/ElementWithID.cpp
src/pf_imgui/interface/Savable.cpp
src/pf_imgui/interface/ItemElement.cpp
src/pf_imgui/interface/Renderable.cpp
src/pf_imgui/layouts/GridLayout.cpp
src/pf_imgui/layouts/StackedLayout.cpp
src/pf_imgui/layouts/AbsoluteLayout.cpp
src/pf_imgui/layouts/StretchLayout.cpp
src/pf_imgui/interface/Layout.cpp
${IMGUI_FILE_DIALOG_DIR}/ImGuiFileDialog.cpp
${IMGUI_FLAME_GRAPH_DIR}/imgui_widget_flamegraph.cpp
src/include/implot/implot_items.cpp
src/include/implot/implot.cpp
src/include/imgui-knobs/imgui-knobs.cpp
src/include/imgui/imgui.cpp
src/include/imgui/imgui_widgets.cpp
src/include/imgui/imgui_draw.cpp
src/include/imgui/imgui_tables.cpp
src/include/imgui/imgui_demo.cpp
src/include/DearWidgets/dear_widgets.cpp
src/include/imGuIZMO.quat/imGuIZMOquat.cpp
src/include/ImGuizmo/ImGuizmo.cpp
src/include/ImGuiColorTextEdit/ImGuiColorTextEditor.cpp
src/include/imgui-command-palette/imcmd_command_palette.cpp
src/include/imgui-command-palette/imcmd_fuzzy_search.cpp
src/pf_imgui/interface/DragNDrop.cpp
src/pf_imgui/elements/MenuItems.cpp
src/pf_imgui/elements/PopupMenu.cpp
src/pf_imgui/managers/FontManager.cpp
src/pf_imgui/layouts/AnchorLayout.cpp
src/pf_imgui/details/template_instantiations.cpp
src/pf_imgui/elements/DockSpace.cpp
src/pf_imgui/details/Spinner.cpp
src/pf_imgui/elements/Spinner.cpp
src/pf_imgui/elements/StatusBar.cpp
src/pf_imgui/dialogs/Notification.cpp
src/pf_imgui/managers/NotificationManager.cpp
src/pf_imgui/details/GroupBox.cpp
src/pf_imgui/elements/GroupBox.cpp
src/pf_imgui/elements/TextEditor.cpp
src/pf_imgui/dialogs/CommandPaletteWindow.cpp
src/pf_imgui/elements/CommandPalette.cpp
src/pf_imgui/elements/Toggle.cpp
src/pf_imgui/layouts/WrapLayout.cpp
src/pf_imgui/elements/LinkText.cpp
src/pf_imgui/elements/DatePicker.cpp
src/include/imgui_addons/imguidatechooser.cpp
src/include/imgui-node-editor/imgui_node_editor_api.cpp
src/include/imgui-node-editor/imgui_node_editor.cpp
src/include/imgui-node-editor/imgui_canvas.cpp
src/include/imgui-node-editor/crude_json.cpp
src/pf_imgui/node_editor/Link.cpp
src/pf_imgui/node_editor/Node.cpp
src/pf_imgui/node_editor/NodeEditor.cpp
src/pf_imgui/node_editor/Pin.cpp
src/pf_imgui/node_editor/Comment.cpp
src/pf_imgui/node_editor/NodeBase.cpp
src/include/imgui_curve_editor/ImGuiCurveEditor.cpp
src/pf_imgui/elements/SimpleCurveEditor.cpp
src/include/imgui_color_gradient/imgui_color_gradient.cpp
src/pf_imgui/elements/GradientEditor.cpp
src/pf_imgui/common/Font.cpp
src/pf_imgui/layouts/HorizontalLayout.cpp
src/pf_imgui/layouts/VerticalLayout.cpp
src/pf_imgui/layouts/LinearLayout.cpp
src/pf_imgui/elements/TimePicker.cpp
src/pf_imgui/DockBuilder.cpp
src/pf_imgui/dialogs/BackgroundDockingArea.cpp
src/pf_imgui/elements/CustomIconButtonBehavior.cpp
src/pf_imgui/details/CustomIconButtonImpls.cpp
src/pf_imgui/managers/DialogManager.cpp
src/pf_imgui/dialogs/MessageDialog.cpp
src/pf_imgui/dialogs/builders/FileDialogBuilder.cpp
src/pf_imgui/dialogs/builders/MessageDialogBuilder.cpp
src/pf_imgui/dialogs/builders/InputDialogBuilder.cpp
src/pf_imgui/dialogs/InputDialog.cpp
src/pf_imgui/elements/MemoryEditor.cpp
src/pf_imgui/details/IndeterminateProgressBar.cpp
src/pf_imgui/elements/IndeterminateProgressBar.cpp
src/pf_imgui/elements/OverlayGizmo.cpp
src/pf_imgui/elements/details/OverlayGizmoBase.cpp
src/pf_imgui/interface/Element.cpp
src/pf_imgui/elements/ConsolePanel.cpp
src/pf_imgui/common/Label.cpp
src/pf_imgui/elements/plots/types/plot_types_impls.cpp
src/pf_imgui/details/LabeledDrag.cpp
src/pf_imgui/details/LabeledSlider.cpp
)
set(BLUEPRINT_SOURCES
src/pf_imgui/node_editor/blueprint/pins/CheckboxPin.cpp
src/pf_imgui/node_editor/blueprint/pins/EventPin.cpp
src/pf_imgui/node_editor/blueprint/pins/ExecPin.cpp
src/pf_imgui/node_editor/blueprint/pins/PinDraw.cpp
src/pf_imgui/node_editor/blueprint/pins/StringInputPin.cpp
src/pf_imgui/node_editor/blueprint/pins/Pin.cpp
src/pf_imgui/node_editor/blueprint/nodes/SimpleNode.cpp
src/pf_imgui/node_editor/blueprint/nodes/NodeWithLabel.cpp
src/pf_imgui/node_editor/blueprint/nodes/Node.cpp
src/pf_imgui/node_editor/blueprint/NodeEditor.cpp
src/pf_imgui/node_editor/blueprint/common.cpp
)
set(INCLUDES
src/pf_imgui/fwd.h
src/pf_imgui/elements.h
src/pf_imgui/ImGuiInterface.h
src/pf_imgui/serialization.h
src/pf_imgui/ui_tree_traversal.h
src/pf_imgui/elements/Button.h
src/pf_imgui/elements/Checkbox.h
src/pf_imgui/elements/ColorChooser.h
src/pf_imgui/dialogs/ModalDialog.h
src/pf_imgui/dialogs/MessageDialog.h
src/pf_imgui/elements/DragInput.h
src/pf_imgui/elements/MatrixDragInput.h
src/pf_imgui/elements/Expander.h
src/pf_imgui/elements/Image.h
src/pf_imgui/elements/Input.h
src/pf_imgui/elements/InputText.h
src/pf_imgui/elements/Listbox.h
src/pf_imgui/elements/MenuBars.h
src/pf_imgui/elements/plots/SimplePlot.h
src/pf_imgui/elements/plots/Plot.h
src/pf_imgui/elements/ProgressBar.h
src/pf_imgui/elements/RadioButton.h
src/pf_imgui/elements/RadioGroup.h
src/pf_imgui/elements/Slider.h
src/pf_imgui/elements/SliderAngle.h
src/pf_imgui/elements/TabBar.h
src/pf_imgui/elements/Text.h
src/pf_imgui/elements/Tree.h
src/pf_imgui/elements/Table.h
src/pf_imgui/elements/Selectable.h
src/pf_imgui/elements/MarkdownText.h
src/pf_imgui/dialogs/Window.h
src/pf_imgui/elements/Tooltip.h
src/pf_imgui/dialogs/FileDialog.h
src/pf_imgui/elements/FlameGraph.h
src/pf_imgui/elements/plots.h
src/pf_imgui/elements/Separator.h
src/pf_imgui/elements/Range2D.h
src/pf_imgui/elements/plots/PieChart.h
src/pf_imgui/elements/plots/types/PlotDataBase.h
src/pf_imgui/elements/plots/types/Bar.h
src/pf_imgui/elements/plots/types/Line.h
src/pf_imgui/elements/plots/types/Stairs.h
src/pf_imgui/elements/plots/types/Shaded.h
src/pf_imgui/elements/plots/types/ErrorBar.h
src/pf_imgui/elements/plots/types/Stems.h
src/pf_imgui/elements/plots/types/HeatMap.h
src/pf_imgui/elements/plots/types/Digital.h
src/pf_imgui/elements/SpinInput.h
src/pf_imgui/elements/MemoryEditor.h
src/pf_imgui/interface/ElementContainer.h
src/pf_imgui/interface/ElementWithID.h
src/pf_imgui/interface/Savable.h
src/pf_imgui/interface/ValueContainer.h
src/pf_imgui/interface/ItemElement.h
src/pf_imgui/reactive/Observable_impl.h
src/pf_imgui/interface/Renderable.h
src/pf_imgui/layouts.h
src/pf_imgui/layouts/GridLayout.h
src/pf_imgui/layouts/StackedLayout.h
src/pf_imgui/layouts/AbsoluteLayout.h
src/pf_imgui/layouts/StretchLayout.h
src/pf_imgui/interface/decorators/WidthDecorator.h
src/pf_imgui/interface/Layout.h
${IMGUI_FILE_DIALOG_DIR}/ImGuiFileDialog.h
${IMGUI_FILE_DIALOG_DIR}/ImGuiFileDialogConfig.h
${IMGUI_FLAME_GRAPH_DIR}/imgui_widget_flamegraph.h
src/pf_imgui/styles/dark.h
src/include/implot/implot.h
src/include/implot/implot_internal.h
src/include/imgui-knobs/imgui-knobs.h
src/include/imgui/imgui.h
src/include/imgui/imgui_internal.h
src/include/imgui_markdown/imgui_markdown.h
src/include/imgui/imconfig.h
src/include/imgui/imstb_rectpack.h
src/include/imgui/imstb_textedit.h
src/include/imgui/imstb_truetype.h
src/pf_imgui/details/ComboFilter.h
src/pf_imgui/dialogs/InputDialog.h
src/include/DearWidgets/dear_widgets.h
src/pf_imgui/elements/Slider2D.h
src/pf_imgui/unique_id.h
src/pf_imgui/elements/Slider3D.h
src/pf_imgui/elements/Bullet.h
src/pf_imgui/interface/DragNDrop.h
src/include/imGuIZMO.quat/imGuIZMOquat.h
src/include/imGuIZMO.quat/vgConfig.h
src/include/imGuIZMO.quat/vGizmo.h
src/include/imGuIZMO.quat/vGizmoMath.h
src/include/imGuIZMO.quat/vgMath.h
src/pf_imgui/elements/VerticalSlider.h
src/pf_imgui/elements/CustomListbox.h
src/pf_imgui/elements/CustomCombobox.h
src/pf_imgui/elements/Combobox.h
src/pf_imgui/elements/CustomItemBox.h
src/pf_imgui/elements/MenuItems.h
src/pf_imgui/elements/PopupMenu.h
src/pf_imgui/icons.h
src/pf_imgui/managers/FontManager.h
src/pf_imgui/layouts/AnchorLayout.h
src/pf_imgui/interface/RenderablesContainer.h
src/pf_imgui/elements/DockSpace.h
src/pf_imgui/details/Spinner.h
src/pf_imgui/elements/Spinner.h
src/pf_imgui/elements/StatusBar.h
src/pf_imgui/dialogs/Notification.h
src/pf_imgui/managers/NotificationManager.h
src/pf_imgui/details/GroupBox.h
src/pf_imgui/elements/GroupBox.h
src/pf_imgui/elements/Gizmo3D.h
src/include/ImGuiColorTextEdit/ImGuiColorTextEditor.h
src/pf_imgui/elements/TextEditor.h
src/include/imgui-command-palette/imcmd_command_palette.h
src/include/imgui-command-palette/imcmd_fuzzy_search.h
src/pf_imgui/dialogs/CommandPaletteWindow.h
src/pf_imgui/elements/CommandPalette.h
src/pf_imgui/elements/Toggle.h
src/pf_imgui/layouts/WrapLayout.h
src/pf_imgui/elements/LinkText.h
src/pf_imgui/elements/DatePicker.h
src/include/imgui-node-editor/imgui_node_editor.h
src/include/imgui-node-editor/imgui_canvas.h
src/include/imgui-node-editor/crude_json.h
src/include/imgui-node-editor/imgui_bezier_math.h
src/include/imgui-node-editor/imgui_extra_math.h
src/pf_imgui/node_editor/Link.h
src/pf_imgui/node_editor/Node.h
src/pf_imgui/node_editor/NodeEditor.h
src/pf_imgui/node_editor/Pin.h
src/pf_imgui/node_editor/fwd.h
src/pf_imgui/node_editor/details/LinkPtrToRef.h
src/pf_imgui/node_editor/Comment.h
src/pf_imgui/node_editor/NodeBase.h
src/pf_imgui/common/Size.h
src/pf_imgui/common/Position.h
src/pf_imgui/common/Color.h
src/include/imgui_curve_editor/ImGuiCurveEditor.h
src/pf_imgui/elements/SimpleCurveEditor.h
src/include/imgui_color_gradient/imgui_color_gradient.h
src/include/ringbuffer/ringbuffer.hpp
src/include/ImGuizmo/ImGuizmo.h
src/pf_imgui/elements/GradientEditor.h
src/pf_imgui/common/Font.h
src/pf_imgui/layouts/HorizontalLayout.h
src/pf_imgui/layouts/VerticalLayout.h
src/pf_imgui/layouts/LinearLayout.h
src/pf_imgui/elements/TimePicker.h
src/pf_imgui/DockBuilder.h
src/pf_imgui/elements/LogPanel.h
src/pf_imgui/dialogs/BackgroundDockingArea.h
src/pf_imgui/interface/TomlSerializable.h
src/pf_imgui/elements/CustomIconButtonBehavior.h
src/pf_imgui/details/CustomIconButtonImpls.h
src/pf_imgui/elements/common/TextEditorTypes.h
src/pf_imgui/managers/DialogManager.h
src/pf_imgui/dialogs/builders/FileDialogBuilder.h
src/pf_imgui/dialogs/builders/MessageDialogBuilder.h
src/pf_imgui/elements/Dummy.h
src/pf_imgui/dialogs/builders/InputDialogBuilder.h
src/pf_imgui/elements/Knob.h
src/pf_imgui/elements/details/DragInputDetails.h
src/pf_imgui/elements/details/InputDetails.h
src/pf_imgui/elements/details/SliderDetails.h
src/pf_imgui/details/IndeterminateProgressBar.h
src/pf_imgui/elements/IndeterminateProgressBar.h
src/pf_imgui/elements/OverlayGizmo.h
src/pf_imgui/elements/details/OverlayGizmoBase.h
src/pf_imgui/elements/OptionSlider.h
src/pf_imgui/interface/Element.h
src/pf_imgui/style/ColorPalette.h
src/pf_imgui/style/common.h
src/pf_imgui/common/Texture.h
src/pf_imgui/style/StyleOptions.h
src/pf_imgui/elements/ConsolePanel.h
src/pf_imgui/elements/details/TextUtils.h
src/pf_imgui/common/Label.h
src/pf_imgui/reactive/Event.h
src/pf_imgui/reactive/Observable.h
src/pf_imgui/concepts/HasSizeObservable.h
src/pf_imgui/concepts/ConfigConstruction.h
src/pf_imgui/common/Tags.h
src/pf_imgui/reactive/PropertyOwner.h
src/pf_imgui/reactive/EventOwner.h
src/pf_imgui/elements/plots/types/Plottable.h
src/pf_imgui/details/LabeledDrag.h
src/pf_imgui/details/DataTypeSize.h
src/pf_imgui/details/LabeledSlider.h
)
set(BLUEPRINT_INCLUDES
src/pf_imgui/node_editor/blueprint/common.h
src/pf_imgui/node_editor/blueprint/NodeEditor.h
src/pf_imgui/node_editor/blueprint/nodes/Node.h
src/pf_imgui/node_editor/blueprint/pins/ArrayPin.h
src/pf_imgui/node_editor/blueprint/pins/CheckboxPin.h
src/pf_imgui/node_editor/blueprint/pins/DragPin.h
src/pf_imgui/node_editor/blueprint/pins/PinWithValue.h
src/pf_imgui/node_editor/blueprint/pins/EventPin.h
src/pf_imgui/node_editor/blueprint/pins/ExecPin.h
src/pf_imgui/node_editor/blueprint/pins/InteractablePin.h
src/pf_imgui/node_editor/blueprint/pins/PinDraw.h
src/pf_imgui/node_editor/blueprint/pins/StringInputPin.h
src/pf_imgui/node_editor/blueprint/pins/ValuePin.h
src/pf_imgui/node_editor/blueprint/pins/Pin.h
src/pf_imgui/node_editor/blueprint/nodes/SimpleNode.h
src/pf_imgui/node_editor/blueprint/nodes/NodeWithLabel.h
)
list(APPEND INCLUDES ${toml++_headers})
option(BUILD_SHARED_LIBS "build this library as shared" OFF)
option(BUILD_DOCS "build doxygen docs" OFF)
SET(CMAKE_DEBUG_POSTFIX "d" CACHE STRING "add a postfix, usually d on windows")
SET(CMAKE_RELEASE_POSTFIX "" CACHE STRING "add a postfix, usually empty on windows")
SET(CMAKE_RELWITHDEBINFO_POSTFIX "rd" CACHE STRING "add a postfix, usually empty on windows")
SET(CMAKE_MINSIZEREL_POSTFIX "s" CACHE STRING "add a postfix, usually empty on windows")
add_library(${PROJECT_NAME} STATIC ${SOURCES} ${INCLUDES})
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
add_library(${PROJECT_NAME}_blueprint STATIC ${BLUEPRINT_SOURCES} ${BLUEPRINT_INCLUDES})
add_library(${PROJECT_NAME}_blueprint::${PROJECT_NAME}_blueprint ALIAS ${PROJECT_NAME}_blueprint)
target_compile_options(${PROJECT_NAME} PRIVATE ${flags})
target_compile_options(${PROJECT_NAME}_blueprint PRIVATE ${flags})
include(GNUInstallDirs)
target_include_directories(${PROJECT_NAME} PUBLIC $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/static_type_info>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/DearWidgets>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/implot>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui-knobs>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ImGuiFileDialog>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ImGuiFileFlameGraph>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui_markdown>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imGuIZMO.quat>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ImGuiFlamegraph>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui_memory_editor>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgInspect>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ImGuiIcons>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ImGuiColorTextEdit>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui-command-palette>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui_addons>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui-node-editor>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui_curve_editor>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/imgui_color_gradient>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ringbuffer>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src/include/ImGuizmo>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${toml++_SOURCE_DIR}/include>)
target_include_directories(${PROJECT_NAME} PUBLIC $<BUILD_INTERFACE:${glm_SOURCE_DIR}>)
target_link_libraries(${PROJECT_NAME} PRIVATE pf_common::pf_common tomlplusplus::tomlplusplus)
target_link_libraries(${PROJECT_NAME}_blueprint PRIVATE pf_common::pf_common tomlplusplus::tomlplusplus ${PROJECT_NAME}::${PROJECT_NAME})
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE ON)
include(GenerateExportHeader)
generate_export_header(${PROJECT_NAME} EXPORT_FILE_NAME ${PROJECT_NAME}/${PROJECT_NAME_LOWER}_export.h)
set_property(TARGET ${PROJECT_NAME} PROPERTY VERSION ${PROJECT_VERSION})
set_property(TARGET ${PROJECT_NAME} PROPERTY SOVERSION ${PROJECT_VERSION_MAJOR})
set_property(TARGET ${PROJECT_NAME} PROPERTY INTERFACE_${PROJECT_NAME}_MAJOR_VERSION ${PROJECT_VERSION_MAJOR})
set_property(TARGET ${PROJECT_NAME} APPEND PROPERTY COMPATIBLE_INTERFACE_STRING ${PROJECT_NAME}_MAJOR_VERSION)
set_property(TARGET ${PROJECT_NAME}_blueprint PROPERTY VERSION ${PROJECT_VERSION})
set_property(TARGET ${PROJECT_NAME}_blueprint PROPERTY SOVERSION ${PROJECT_VERSION_MAJOR})
set_property(TARGET ${PROJECT_NAME}_blueprint PROPERTY INTERFACE_${PROJECT_NAME}_blueprint_MAJOR_VERSION ${PROJECT_VERSION_MAJOR})
set_property(TARGET ${PROJECT_NAME}_blueprint APPEND PROPERTY COMPATIBLE_INTERFACE_STRING ${PROJECT_NAME}_blueprint_MAJOR_VERSION)
install(TARGETS ${PROJECT_NAME}
EXPORT ${PROJECT_NAME}Targets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(TARGETS ${PROJECT_NAME}_blueprint
EXPORT ${PROJECT_NAME}_blueprintTargets
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME_LOWER}_export.h
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
COMPONENT
Devel
)
# INCLUDE INSTALLS
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/pf_imgui/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}
PATTERN "*.cpp" EXCLUDE
PATTERN "backends/*" EXCLUDE
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/DearWidgets/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgInspect/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui-command-palette/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui-node-editor/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.inl"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui_addons/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui_color_gradient/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui_curve_editor/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui_markdown/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui_memory_editor/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui_notify/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ImGuiColorTextEdit/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ImGuiFileDialog/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ImGuiFileDialog/stb/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/stb
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ImGuiFlamegraph/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ImGuiIcons/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imGuIZMO.quat/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/implot/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/imgui-knobs/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ringbuffer/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.hpp"
)
install(
DIRECTORY "${CMAKE_SOURCE_DIR}/src/include/ImGuizmo/"
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
FILES_MATCHING
PATTERN "*.h"
)
install(
FILES
${GENERATED_INCLUDES}
DESTINATION
${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/Generated
COMPONENT
Devel
)
include(CMakePackageConfigHelpers)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)
write_basic_package_version_file(
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_blueprintConfigVersion.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY SameMajorVersion
)
export(EXPORT ${PROJECT_NAME}Targets
FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAME}::
)
export(EXPORT ${PROJECT_NAME}_blueprintTargets
FILE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_blueprintTargets.cmake
NAMESPACE ${PROJECT_NAME}::
)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME})
install(EXPORT ${PROJECT_NAME}Targets
FILE
${PROJECT_NAME}Targets.cmake
NAMESPACE
${PROJECT_NAME}::
DESTINATION
${ConfigPackageLocation}
)
set(ConfigPackageLocation lib/cmake/${PROJECT_NAME})
install(EXPORT ${PROJECT_NAME}_blueprintTargets
FILE
${PROJECT_NAME}_blueprintTargets.cmake
NAMESPACE
${PROJECT_NAME}_blueprint::
DESTINATION
${ConfigPackageLocation}
)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}Config.cmake
"include($" "{CMAKE_CURRENT_LIST_DIR}/${PROJECT_NAME}Targets.cmake)"
)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_blueprintConfig.cmake
"include($" "{CMAKE_CURRENT_LIST_DIR}/${PROJECT_NAME}_blueprintTargets.cmake)"
)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}Config.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake
DESTINATION
${ConfigPackageLocation}
COMPONENT
Devel
)
install(
FILES
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_blueprintConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}_blueprintConfigVersion.cmake
DESTINATION
${ConfigPackageLocation}
COMPONENT
Devel
)
if (BUILD_DOCS)
find_package(Doxygen)
if (DOXYGEN_FOUND)
set(HTML_DYNAMIC_MENUS YES)
set(DOXYGEN_EXCLUDE_PATTERNS "*/src/pf_imgui/backends/*" "*/src/pf_imgui/details/*")
doxygen_add_docs(pf_imgui_doc ALL
${CMAKE_SOURCE_DIR}/src/pf_imgui
)
endif ()
endif ()