Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 9972c10

Browse files
Walter PearceJoshua Brookover
Walter Pearce
authored and
Joshua Brookover
committed
Fixed: texturev build failed requiring examples-common; moved BGFX_EXAMPLES check to examples instead of globally.
Updated: bgfx, bx, bimg to latest Fixed: bx now requires including 3rdparty for build
1 parent 0f283a8 commit 9972c10

File tree

6 files changed

+53
-52
lines changed

6 files changed

+53
-52
lines changed

CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ if( BGFX_BUILD_TOOLS )
5151
include( cmake/tools.cmake )
5252
endif()
5353

54-
if( BGFX_BUILD_EXAMPLES )
55-
include( cmake/examples.cmake )
56-
endif()
54+
include( cmake/examples.cmake )
5755

5856
if( BGFX_INSTALL )
5957
# install bx

bgfx

Submodule bgfx updated 642 files

bx

Submodule bx updated 72 files

cmake/bx.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if( WIN32 )
3535
endif()
3636

3737
# Add include directory of bx
38-
target_include_directories( bx PUBLIC ${BX_DIR}/include )
38+
target_include_directories( bx PUBLIC ${BX_DIR}/include ${BX_DIR}/3rdparty )
3939

4040
# Build system specific configurations
4141
if( MSVC )

cmake/examples.cmake

+48-45
Original file line numberDiff line numberDiff line change
@@ -156,48 +156,51 @@ add_example(
156156
${BGFX_DIR}/examples/common/ps
157157
)
158158

159-
# Add examples
160-
set(
161-
BGFX_EXAMPLES
162-
00-helloworld
163-
01-cubes
164-
02-metaballs
165-
03-raymarch
166-
04-mesh
167-
05-instancing
168-
06-bump
169-
07-callback
170-
08-update
171-
09-hdr
172-
10-font
173-
11-fontsdf
174-
12-lod
175-
13-stencil
176-
14-shadowvolumes
177-
15-shadowmaps-simple
178-
16-shadowmaps
179-
17-drawstress
180-
18-ibl
181-
19-oit
182-
20-nanovg
183-
21-deferred
184-
22-windows
185-
23-vectordisplay
186-
24-nbody
187-
25-c99
188-
26-occlusion
189-
27-terrain
190-
28-wireframe
191-
29-debugdraw
192-
30-picking
193-
31-rsm
194-
32-particles
195-
33-pom
196-
34-mvs
197-
35-dynamic
198-
36-sky
199-
)
200-
201-
foreach( EXAMPLE ${BGFX_EXAMPLES} )
202-
add_example( ${EXAMPLE} )
203-
endforeach()
159+
# Only add examples if set, otherwise we still need exmaples common for tools
160+
if( BGFX_BUILD_EXAMPLES )
161+
# Add examples
162+
set(
163+
BGFX_EXAMPLES
164+
00-helloworld
165+
01-cubes
166+
02-metaballs
167+
03-raymarch
168+
04-mesh
169+
05-instancing
170+
06-bump
171+
07-callback
172+
08-update
173+
09-hdr
174+
10-font
175+
11-fontsdf
176+
12-lod
177+
13-stencil
178+
14-shadowvolumes
179+
15-shadowmaps-simple
180+
16-shadowmaps
181+
17-drawstress
182+
18-ibl
183+
19-oit
184+
20-nanovg
185+
21-deferred
186+
22-windows
187+
23-vectordisplay
188+
24-nbody
189+
25-c99
190+
26-occlusion
191+
27-terrain
192+
28-wireframe
193+
29-debugdraw
194+
30-picking
195+
31-rsm
196+
32-particles
197+
33-pom
198+
34-mvs
199+
35-dynamic
200+
36-sky
201+
)
202+
203+
foreach( EXAMPLE ${BGFX_EXAMPLES} )
204+
add_example( ${EXAMPLE} )
205+
endforeach()
206+
endif()

0 commit comments

Comments
 (0)