I have a small Jamfile that I process with Boost Build that looks like this:
exe add-account : add-account.cpp ..//server-lib ../../shared//shared ;
exe add-deck : add-deck.cpp ..//server-lib ../../shared//shared ;
exe give-all-cards : give-all-cards.cpp ..//server-lib ../../shared//shared ;
exe give-card : give-card.cpp ..//server-lib ../../shared//shared ;
install . :
add-account
add-deck
give-all-cards
give-card
;
I feel like I should be able to do this with some sort of template. I've been looking around in the Boost Build user manual, but haven't found a language rule that will help me.
It's probably worth mentioning that I'm aware that more code is probably not the best solution here, but I'm still interested in if it can be done. It would at least be useful in cases where I want to compile an entire directory filled with single source-file programs.