[cmake-developers] TARGET property LOCATION

Nils Gladitz nilsgladitz at gmail.com
Mon Dec 2 03:34:58 EST 2013


On 12/02/2013 09:19 AM, Marcel Loose wrote:
> What would be the preferred way to pass the location of a built 
> executable target to ADD_TEST? By using the COMMAND option of 
> ADD_TEST, or by using the $<TARGET_FILE> generator expression? Best 
> regards, Marcel Loose. 
My personal preference would be the NAME/COMMAND signature of add_test().
I might use the generator expression when the test command would require 
the output file as a parameter (e.g. in case you wrap your test with 
some sort of launcher).

Nils



More information about the cmake-developers mailing list