Files
unison/examples/CMakeLists.txt
Gabriel Ferreira 41aacec626 build: CMake refactoring
Includes:
- refactor build_lib and build_lib_example macros
    - unify src and contrib macros
    - replace macro with function not to leak definitions
    - parse list of arguments
- different cmake-format file for modules to list one item per line
2022-01-28 10:20:18 -03:00

15 lines
405 B
CMake

if(${ENABLE_EXAMPLES})
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"
)
endforeach()
scan_python_examples(${CMAKE_CURRENT_SOURCE_DIR})
endif()