Permalänk

CustomBuild?

Finns det något enkelt sätt att välja output directories som e relativa till workspace directoryt för libs, dlls och headers i Visual C++?

I project->settings kan man ju ändra output dirs men då måste man ju ange ett helt dir och filnamn typ: "c:\Output\fil.dll". Vill ha en katalog som e relativ till rotkatalogen för mitt workspace. Har försökt med custom build och gjort något i stil med:

commands:
copy $(InputPath)

outputs:
$(WkspDir)

men $(WkspDir) verkar ju motsvara projekt dir och inte workspace dir.

Visa signatur

And on the seventh day, god stepped back and said: "There is my creation, perfect in every way... oh, dammit I left pot all over the place. Now they'll think I want them to smoke it... Now I have to create republicans." - Bill Hicks

Permalänk
Medlem

"..\foo\bar.lib" t.ex?

Visa signatur

Perl - Made by Idiots, Java - Made for Idiots, C++ - Envied by Idiots

Permalänk
Citat:

Ursprungligen inskrivet av Sunray
"..\foo\bar.lib" t.ex?

k gjorde såhär nu:

Commands:
copy $(InputPath)

Outputs:
"..\foo\bar.lib"

Då skapar den i alla fall katalogen "foo" i mitt workspace dir men "bar.lib" hamnar ändå i mitt project dir och "foo" forblir tom.

edit:: Missförstod visst Outputs lite, gjorde om det till:

Commands:
copy $(InputPath) "..\foo\bar.lib"

Så nu fungerar det, tackar för hjälpen

Visa signatur

And on the seventh day, god stepped back and said: "There is my creation, perfect in every way... oh, dammit I left pot all over the place. Now they'll think I want them to smoke it... Now I have to create republicans." - Bill Hicks