File tree Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Expand file tree Collapse file tree 4 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1
1
if (NBL_BUILD_IMGUI )
2
2
3
- include (common RESULT_VARIABLE RES )
4
- if (NOT RES )
5
- message (FATAL_ERROR "common.cmake not found. Should be in {repo_root}/cmake directory" )
6
- endif ()
3
+ include (common RESULT_VARIABLE RES )
4
+ if (NOT RES )
5
+ message (FATAL_ERROR "common.cmake not found. Should be in {repo_root}/cmake directory" )
6
+ endif ()
7
7
8
- list (APPEND libs
9
- "imgui"
10
- "${NBL_EXT_IMGUI_LIB } "
11
- )
8
+ list (APPEND libs
9
+ "imgui"
10
+ "${NBL_EXT_IMGUI_UI_LIB } "
11
+ )
12
12
13
- # I'll ask about why it is not working about me adding imGui.cpp manually
14
- nbl_create_executable_project ("../../src/nbl/ext/ImGui/ImGui.cpp" "" "" "${libs} " )
13
+ # I'll ask about why it is not working about me adding imGui.cpp manually.
14
+ nbl_create_executable_project (
15
+ ""
16
+ ""
17
+ "${NBL_EXT_IMGUI_UI_INCLUDE_DIRS} "
18
+ "${libs} "
19
+ )
15
20
16
21
endif ()
Original file line number Diff line number Diff line change @@ -73,4 +73,6 @@ if (NOT NBL_BUILD_ANDROID)
73
73
endif ()
74
74
add_subdirectory (60.ClusteredRendering EXCLUDE_FROM_ALL )
75
75
add_subdirectory (0.ImportanceSamplingEnvMaps EXCLUDE_FROM_ALL ) #TODO: integrate back into 42
76
- add_subdirectory (61.UI EXCLUDE_FROM_ALL )
76
+ if (NBL_BUILD_IMGUI )
77
+ add_subdirectory (61.UI EXCLUDE_FROM_ALL )
78
+ endif ()
Original file line number Diff line number Diff line change @@ -55,12 +55,12 @@ endif()
55
55
56
56
if (NBL_BUILD_IMGUI )
57
57
add_subdirectory (ImGui )
58
- set (NBL_EXT_IMGUI_INCLUDE_DIRS
59
- ${NBL_EXT_IMGUI_INCLUDE_DIRS }
58
+ set (NBL_EXT_IMGUI_UI_INCLUDE_DIRS
59
+ ${NBL_EXT_IMGUI_UI_INCLUDE_DIRS }
60
60
PARENT_SCOPE
61
61
)
62
- set (NBL_EXT_IMGUI_LIB
63
- ${NBL_EXT_IMGUI_LIB }
62
+ set (NBL_EXT_IMGUI_UI_LIB
63
+ ${NBL_EXT_IMGUI_UI_LIB }
64
64
PARENT_SCOPE
65
65
)
66
66
endif ()
Original file line number Diff line number Diff line change @@ -16,10 +16,10 @@ set(NBL_EXT_IMGUI_EXTERNAL_INCLUDE
16
16
)
17
17
18
18
nbl_create_ext_library_project (
19
- ImGui
19
+ IMGUI_UI
20
20
"${NBL_EXT_IMGUI_H} "
21
21
"${NBL_EXT_IMGUI_SRC} "
22
22
"${NBL_EXT_IMGUI_EXTERNAL_INCLUDE} "
23
23
""
24
24
""
25
- )
25
+ )
You can’t perform that action at this time.
0 commit comments