import std / [ os, osproc, strformat, strutils ] # This is just an example to get you started. A typical binary package # uses this file as the main entry point of the application. proc main() = # relative=true removes the folder name # for example tesserae/test -> test #let buildFiles = @[] for file in walkDir("tesserae", checkDir=true): if file.path.endsWith(".nim"): echo "Found {file.path}".fmt echo "Compiling..." let output = execCmd("nim c -d:release --outdir:/mosaic/panel {file.path}".fmt) # echo output echo "" when isMainModule: echo("Hello, World!") main()