forked from ocornut/imgui
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable default file handler and Add hook so external projects can ho…
…ok their own internal file handling objects
- Loading branch information
1 parent
2ab7f96
commit e1cff96
Showing
4 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# USE_NATIVE_IMGUI_INCLUDE_PATHS is set to true by default include direct path to imgui headers | ||
# User can set it to false to create a custom way of including imgui to their project | ||
option(USE_NATIVE_IMGUI_INCLUDE_PATHS "Set this to false if you want to define your own target_include_directories function for imgui." true) | ||
|
||
add_library(imgui STATIC) | ||
|
||
target_sources(imgui | ||
PRIVATE | ||
imgui.h | ||
imconfig.h | ||
imgui_demo.cpp | ||
imgui_draw.cpp | ||
imgui_internal.h | ||
imgui_widgets.cpp | ||
imgui.cpp | ||
imgui_tables.cpp | ||
) | ||
|
||
if(USE_NATIVE_IMGUI_INCLUDE_PATHS) | ||
target_include_directories(imgui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters