Boost logo

Boost-Build :

From: Elifant (elifantu_at_[hidden])
Date: 2005-10-12 22:40:07


Sergei Tvorogov wrote:

>>When I build project, executable files are placed in some subdirectory
>>of 'bin'. The problem is that test uses some file which is placed next
>>to the source. How can I copy this file to the same directory with the
>>executable, so test can find it?
>>
>
> Use something, like this (bbv2):
> project winentry
> : source-location ../src
> ;
>
> SOURCES =
> WinEntry.cpp
> ;
>
> exe start
> : $(SOURCES) WinAppRes.rc /appcore /libpng
> : <user-interface>gui
> <linkflags>"user32.lib gdi32.lib kernel32.lib advapi32.lib"
> ;
>
> stage bin
> :
> start /winui /winres
> # maybe this will be useful for you (copy all *.dll files from
> (DLL_PATH) to /_out/bin)
> [ path.glob $(DLLS_PATH) : *.dll ]
> : <location>$(TOP)/_out/bin
> <traverse-dependencies>on
> <include-type>EXE
> <include-type>SHARED_LIB
> ;

It seems that you have only one bin directory '$(TOP)/_out/bin' and
install needed files there. But I have separate 'bin' directory for each
compiler and I want to get copy of files required by unit-tests in every
directory.

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk