I got first step forward. I will update this thread for any other nim/nimble 
beginners.

What I doing wrong? First impression I must put different configuration of 
compiler with relating submodules to separate directories was good, but I don't 
known how to order nimble to build more modules. My mind just skip bin property 
in .nimble file was array. I added path to other modules relative to srcDir. 
Also I must repair syntax of nimble file. Missfortunately, path was 
os-dependent. I attach files here:

1\. $PROJECTDIR/postep.nimble

> # Package
> 
> version = "0.0.1" author = "Sławomir Lach" description = "Nimble version of 
> postęp - game based on Freeciv" license = "GPL-2.0" srcDir = "src" installExt 
> = @["nim"] bin = @["postep", "posteppkg/common/libcommon"]
> 
> # Dependencies
> 
> requires "nim >= 1.0.0"

2\. App compiler config file ($PROJECTDIR/nim.cfg)

> \--gc="refc"|   
> ---|---  
  
3\. Library compiler config file ($PROJECTDIR/src/posteppkg/common/nim.cfg)

> \--cincludes="../../c-files/common"|   
> ---|---  
> \--clibdir="../../c-files/common"|   
> \--app="lib"|   
> \--out="./libcommon"| 

Reply via email to