Fix #7 - separate file searching from include dirs
This commit is contained in:
parent
5b6bfc397e
commit
a8bb2dc01f
4 changed files with 51 additions and 25 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue