|
Boost-Build : |
From: Sergei Tvorogov (sstvorogov_at_[hidden])
Date: 2005-10-12 00:32:20
Elifant wrote:
> Hi,
>
> I have simple project with unit test, something like:
>
> ==================================
> import testing ;
>
> project my ;
>
> lib mylib : mylib.cpp ;
>
> unit-test test : test.cpp mylib ;
>
> ==================================
>
> 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
;
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