diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2018-11-21 21:53:40 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2018-11-21 21:53:40 -0600 |
| commit | a8bb2dc01f99a2866f586f6e1491a512ce9b3cfa (patch) | |
| tree | 8129d7174ddcf42099a6335e18fda82db2c05e94 /tests | |
| parent | 5b6bfc397e0f855abc76b157e7ce2eb9d1226fd7 (diff) | |
| download | nimterop-a8bb2dc01f99a2866f586f6e1491a512ce9b3cfa.tar.gz nimterop-a8bb2dc01f99a2866f586f6e1491a512ce9b3cfa.zip | |
Fix #7 - separate file searching from include dirs
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/tnimterop.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/tnimterop.nim b/tests/tnimterop.nim index 9c5db77..a05cecd 100644 --- a/tests/tnimterop.nim +++ b/tests/tnimterop.nim @@ -2,9 +2,10 @@ import nimterop/cimport cDebug() -cIncludeDir("include") -cCompile("test.c") -cImport("test.h") +cIncludeDir "include" +cAddSearchDir "include" +cCompile cSearchPath("test.c") +cImport cSearchPath "test.h" doAssert TEST_INT == 512 doAssert TEST_FLOAT == 5.12 |
