blob: 07893da69f77f0ca1cedf8ac1a541ff15bd7e507 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import os
template currentSourceDir(): string =
## Return the directory the current source file resides in.
parentDir(currentSourcePath())
when hostOS == "windows":
const libraryName = currentSourceDir() & "/lib/tommath.lib"
else:
const libraryName = currentSourceDir() & "/lib/libtommath.a"
{.passC:"-I" & currentSourceDir() & "/include".}
{.passL:libraryName.}
|