Includes: - scan for python examples if bindings are enabled - do not scan python bindings from modules without a module/bindings directory - remove broken bindings if pybindgen generation fails - replace colored message with normal message for find_external_library - complement pybindgen to check if modules with no bindings folder was scanned and any bindings were generated
19 lines
514 B
CMake
19 lines
514 B
CMake
if(${ENABLE_EXAMPLES})
|
|
subdirlist(examples_to_build ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
# Process subdirectories
|
|
foreach(examplefolder ${examples_to_build})
|
|
if(NOT (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${examplefolder}/CMakeLists.txt))
|
|
continue()
|
|
endif()
|
|
add_subdirectory(${examplefolder})
|
|
|
|
set(ns3-example-folders
|
|
"${examplefolder};${ns3-example-folders}"
|
|
CACHE INTERNAL "list of example folders"
|
|
)
|
|
endforeach()
|
|
endif()
|
|
|
|
scan_python_examples(${CMAKE_CURRENT_SOURCE_DIR})
|