build: Fix CMake and ns3 script bugs, add a test suite and fix formatting

This commit is contained in:
Gabriel Ferreira
2021-12-05 21:53:49 +00:00
parent 1dc223f85a
commit a893eba7e3
123 changed files with 3492 additions and 1135 deletions

View File

@@ -1,10 +1,12 @@
if(${NS3_EXAMPLES})
if(${EXAMPLES_ENABLED})
subdirlist(examples_to_build ${CMAKE_CURRENT_SOURCE_DIR})
# Process subdirectories
foreach(examplefolder ${examples_to_build})
add_subdirectory(${examplefolder})
set(ns3-example-folders "${examplefolder};${ns3-example-folders}" CACHE INTERNAL "list of example folders")
set(ns3-example-folders "${examplefolder};${ns3-example-folders}"
CACHE INTERNAL "list of example folders"
)
endforeach()
endif()