Skip to content

Commit 971ee34

Browse files
committed
wipe all EXCLUDE_FROM_ALL except common directory, group all examples into project to allow build all at once
1 parent ed51dee commit 971ee34

File tree

1 file changed

+43
-41
lines changed

1 file changed

+43
-41
lines changed

CMakeLists.txt

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,74 +3,76 @@
33
# For conditions of distribution and use, see copyright notice in nabla.h
44

55
if(NBL_BUILD_EXAMPLES)
6+
project(NablaExamples)
7+
68
if(NBL_BUILD_ANDROID)
79
nbl_android_create_media_storage_apk()
810
endif()
911

1012
# showcase the use of `nbl::core`,`nbl::system` and `nbl::asset`
11-
add_subdirectory(01_HelloCoreSystemAsset EXCLUDE_FROM_ALL)
13+
add_subdirectory(01_HelloCoreSystemAsset)
1214
# showcase the use of `system::IApplicationFramework` and `nbl::video`
13-
add_subdirectory(02_HelloCompute EXCLUDE_FROM_ALL)
15+
add_subdirectory(02_HelloCompute)
1416
# showcase physical device selection, resource embedding and the use of identical headers in HLSL and C++
15-
add_subdirectory(03_DeviceSelectionAndSharedSources EXCLUDE_FROM_ALL)
17+
add_subdirectory(03_DeviceSelectionAndSharedSources)
1618
# showcase the creation of windows and polling for input
17-
add_subdirectory(04_HelloUI EXCLUDE_FROM_ALL)
19+
add_subdirectory(04_HelloUI)
1820
# showcase the semi-advanced use of Nabla's Streaming Buffers and BDA
19-
add_subdirectory(05_StreamingAndBufferDeviceAddressApp EXCLUDE_FROM_ALL)
21+
add_subdirectory(05_StreamingAndBufferDeviceAddressApp)
2022
# showcase the use of a graphics queue
21-
add_subdirectory(06_HelloGraphicsQueue EXCLUDE_FROM_ALL)
23+
add_subdirectory(06_HelloGraphicsQueue)
2224
# showcase the set-up of multiple queues
23-
add_subdirectory(07_StagingAndMultipleQueues EXCLUDE_FROM_ALL)
25+
add_subdirectory(07_StagingAndMultipleQueues)
2426
# showcase the set-up of a swapchain and picking of a matching device
25-
add_subdirectory(08_HelloSwapchain EXCLUDE_FROM_ALL)
26-
add_subdirectory(09_GeometryCreator EXCLUDE_FROM_ALL)
27+
add_subdirectory(08_HelloSwapchain)
28+
add_subdirectory(09_GeometryCreator)
2729
# demonstrate the counting sort utility
28-
add_subdirectory(10_CountingSort EXCLUDE_FROM_ALL)
30+
add_subdirectory(10_CountingSort)
2931
# showcase use of FFT for post-FX Bloom effect
30-
add_subdirectory(11_FFT EXCLUDE_FROM_ALL)
32+
add_subdirectory(11_FFT)
3133

3234

3335
# Waiting for a refactor
34-
#add_subdirectory(27_PLYSTLDemo EXCLUDE_FROM_ALL)
35-
#add_subdirectory(33_Draw3DLine EXCLUDE_FROM_ALL)
36+
#add_subdirectory(27_PLYSTLDemo)
37+
#add_subdirectory(33_Draw3DLine)
3638

3739
# Unit Test Examples
38-
add_subdirectory(20_AllocatorTest EXCLUDE_FROM_ALL)
39-
add_subdirectory(21_LRUCacheUnitTest EXCLUDE_FROM_ALL)
40-
add_subdirectory(22_CppCompat EXCLUDE_FROM_ALL)
41-
add_subdirectory(23_ArithmeticUnitTest EXCLUDE_FROM_ALL)
42-
add_subdirectory(24_ColorSpaceTest EXCLUDE_FROM_ALL)
43-
add_subdirectory(25_FilterTest EXCLUDE_FROM_ALL)
44-
add_subdirectory(26_Blur EXCLUDE_FROM_ALL)
45-
add_subdirectory(27_MPMCScheduler EXCLUDE_FROM_ALL)
46-
add_subdirectory(28_FFTBloom EXCLUDE_FROM_ALL)
47-
add_subdirectory(29_MeshLoaders EXCLUDE_FROM_ALL)
48-
# add_subdirectory(36_CUDAInterop EXCLUDE_FROM_ALL)
40+
add_subdirectory(20_AllocatorTest)
41+
add_subdirectory(21_LRUCacheUnitTest)
42+
add_subdirectory(22_CppCompat)
43+
add_subdirectory(23_ArithmeticUnitTest)
44+
add_subdirectory(24_ColorSpaceTest)
45+
add_subdirectory(25_FilterTest)
46+
add_subdirectory(26_Blur)
47+
add_subdirectory(27_MPMCScheduler)
48+
add_subdirectory(28_FFTBloom)
49+
add_subdirectory(29_MeshLoaders)
50+
# add_subdirectory(36_CUDAInterop)
4951

5052
# Showcase compute pathtracing
51-
add_subdirectory(30_ComputeShaderPathTracer EXCLUDE_FROM_ALL)
53+
add_subdirectory(30_ComputeShaderPathTracer)
5254

53-
add_subdirectory(38_EXRSplit EXCLUDE_FROM_ALL)
55+
add_subdirectory(38_EXRSplit)
5456
# if (NBL_BUILD_MITSUBA_LOADER AND NBL_BUILD_OPTIX)
55-
# add_subdirectory(39_DenoiserTonemapper EXCLUDE_FROM_ALL)
57+
# add_subdirectory(39_DenoiserTonemapper)
5658
# endif()
5759

58-
#add_subdirectory(43_SumAndCDFFilters EXCLUDE_FROM_ALL)
59-
add_subdirectory(47_DerivMapTest EXCLUDE_FROM_ALL)
60-
add_subdirectory(54_Transformations EXCLUDE_FROM_ALL)
61-
add_subdirectory(55_RGB18E7S3 EXCLUDE_FROM_ALL)
62-
add_subdirectory(61_UI EXCLUDE_FROM_ALL)
63-
add_subdirectory(62_CAD EXCLUDE_FROM_ALL)
64-
add_subdirectory(62_SchusslerTest EXCLUDE_FROM_ALL)
65-
add_subdirectory(64_EmulatedFloatTest EXCLUDE_FROM_ALL)
66-
add_subdirectory(0_ImportanceSamplingEnvMaps EXCLUDE_FROM_ALL) #TODO: integrate back into 42
60+
#add_subdirectory(43_SumAndCDFFilters)
61+
add_subdirectory(47_DerivMapTest)
62+
add_subdirectory(54_Transformations)
63+
add_subdirectory(55_RGB18E7S3)
64+
add_subdirectory(61_UI)
65+
add_subdirectory(62_CAD)
66+
add_subdirectory(62_SchusslerTest)
67+
add_subdirectory(64_EmulatedFloatTest)
68+
add_subdirectory(0_ImportanceSamplingEnvMaps) #TODO: integrate back into 42
6769

68-
add_subdirectory(66_HLSLBxDFTests EXCLUDE_FROM_ALL)
69-
add_subdirectory(67_RayQueryGeometry EXCLUDE_FROM_ALL)
70-
add_subdirectory(68_JpegLoading EXCLUDE_FROM_ALL)
70+
add_subdirectory(66_HLSLBxDFTests)
71+
add_subdirectory(67_RayQueryGeometry)
72+
add_subdirectory(68_JpegLoading)
7173

72-
add_subdirectory(70_FLIPFluids EXCLUDE_FROM_ALL)
73-
add_subdirectory(71_RayTracingPipeline EXCLUDE_FROM_ALL)
74+
add_subdirectory(70_FLIPFluids)
75+
add_subdirectory(71_RayTracingPipeline)
7476

7577
NBL_GET_ALL_TARGETS(TARGETS)
7678

0 commit comments

Comments
 (0)