Build simulation scripts that are not in the `examples` directory
I think the new build system (CMake) assumes that the simulation scripts are always in the examples directory of the modules. My module has the following structure:
ns-3-dev
|- contrib
|- my-module
|- doc
|- examples
|- helper
|- model
|- scripts
|- tests
With waf, by adding bld.recurse('scripts') to the wscript, it built the simulation scripts that were inside the scripts directory and put the executables in build/contrib/my-module/scripts.
With ns3/CMake, I added add_subdirectory(scripts) to the CMakeLists. txt file and CMake builds/compiles the simulation scripts. However, it puts the executables inside build/contrib/my-module/examples directory instead of putting them in their own directory (i.e., build/contrib/my-module/scripts.
It looks like this is hard-coded in the function(build_lib_example) line 527.