How could I build my project in command line with visual studios settings for Include directories?

I'm building my project with nmake and I would like to include my dependencies from my visual studio project 'Additional Include Directories'. Is there a way I can include these? I tried to use precompiled headers but that did not work (or I did it wrong).

I'm not able to manually include them as a argument to nmake (-I myLib).

Any advice on how to achieve this?
I occasionally use nmake, and I've always kept all the files in the same directory. Never tested with fully qualified paths, but I'm guessing it would work. Here is my make file for use with nmake I use for creating my substitute C Runtime...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
PROJ       = TCLib

OBJS       = crt_con_a.obj crt_con_w.obj crt_win_a.obj crt_win_w.obj InitStdio.obj InitMath.obj\
             crt_dll.obj newdel.obj alloc.obj alloc2.obj allocsup.obj  strlen.obj memcpy.obj \
             strcpy.obj strncpy.obj strcmp.obj _stricmp.obj _strnicmp.obj _strrev.obj strncmp.obj \
             _atoi64.obj atof.obj abs.obj memset.obj strchr.obj strcat.obj memcmp.obj atol.obj \
             win32_crt_math.obj
             
        
CC         = CL
CC_OPTIONS = /D "_CRT_SECURE_NO_WARNINGS" /O1 /Os /GS- /c /W3 /DWIN32_LEAN_AND_MEAN

$(PROJ).LIB: $(OBJS)
    LIB /NODEFAULTLIB /machine:x86 /OUT:$(PROJ).lib $(OBJS)

.CPP.OBJ:
    $(CC) $(CC_OPTIONS) $<
Topic archived. No new replies allowed.