Files
unison/examples/CMakeLists.txt

19 lines
514 B
CMake
Raw Normal View History

if(${ENABLE_EXAMPLES})
2021-11-10 22:28:44 -03:00
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()
2021-11-10 22:28:44 -03:00
add_subdirectory(${examplefolder})
set(ns3-example-folders
"${examplefolder};${ns3-example-folders}"
CACHE INTERNAL "list of example folders"
)
2021-11-10 22:28:44 -03:00
endforeach()
endif()
scan_python_examples(${CMAKE_CURRENT_SOURCE_DIR})