File PROJECT_ROOT/call_FSLR.cpp includes PROJECT_ROOT/MLhdrs/FSLR.hpp
The following Jamfiles get the job done. I believe bjam tries to looks into the .cpp files to find out dependencies, and should be checking and installing FSLR.hpp file before it tries to compile call_FSLR.cpp that includes it. I am not sure given the glob rule whether it will be bale to do so, or if I need to add any support for it to do so.
PROJECT_ROOT/Jamfile:
local headers = [ path.glob-tree /home/morpheus/base : *.hpp ] ;
install headers
: $(headers)
: <location>/home/morpheus/base_install <install-source-root>/home/morpheus/base
;
project basetrade
: requirements <include>/home/morpheus/base_install
;
build-project MLexe ;
PROJECT_ROOT/MLexe/Jamfile :
project : usage-requirements <include>/home/morpheus/base_install ;
exe callFSLR
: call_FSLR.cpp
:
: <variant>debug <variant>release
;
install install-bin
: callFSLR
: <variant>release:<location>"/home/morpheus/base_install/bin"
<variant>debug:<location>"/home/morpheus/base_install/bindebug"
: release debug
;