Re: [CMake] Where are tests located?

2011-11-11 Thread David Cole
na > > > > > -Original Message- > From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of > EXT-York, Gantry > Sent: Thursday, November 10, 2011 2:34 PM > To: David Cole > Cc: cmake@cmake.org > Subject: Re: [CMake] Where are tests located?

Re: [CMake] Where are tests located?

2011-11-11 Thread David Cole
main is at? > > > -Original Message- > From: David Cole [mailto:david.c...@kitware.com] > Sent: Thursday, November 10, 2011 1:09 PM > To: EXT-York, Gantry > Cc: cmake@cmake.org > Subject: Re: [CMake] Where are tests located? > > When you add an IMPORTED targ

Re: [CMake] Where are tests located?

2011-11-10 Thread EXT-York, Gantry
Behalf Of EXT-York, Gantry Sent: Thursday, November 10, 2011 2:34 PM To: David Cole Cc: cmake@cmake.org Subject: Re: [CMake] Where are tests located? OK, so if I'm trying to add a test do I just add_executable( run_main.pl IMPORTED ) set_property( TARGET test_script1 PROPERTY IM

Re: [CMake] Where are tests located?

2011-11-10 Thread EXT-York, Gantry
XT-York, Gantry Cc: cmake@cmake.org Subject: Re: [CMake] Where are tests located? When you add an IMPORTED target, CMake does not know where the imported target is AT ALL until you tell it. After: add_executable(run_main.pl IMPORTED) You need: set_property(TARGET run_main.pl P

Re: [CMake] Where are tests located?

2011-11-10 Thread EXT-York, Gantry
e.org [mailto:cmake-boun...@cmake.org] On Behalf Of EXT-York, Gantry Sent: Thursday, November 10, 2011 1:01 PM To: cmake@cmake.org Subject: [CMake] Where are tests located? When I do an add_executable( run_main.pl IMPORTED) add_test( test1 run_main.pl) How does it know where run_main.pl is located whe

Re: [CMake] Where are tests located?

2011-11-10 Thread David Cole
When you add an IMPORTED target, CMake does not know where the imported target is AT ALL until you tell it. After: add_executable(run_main.pl IMPORTED) You need: set_property(TARGET run_main.pl PROPERTY IMPORTED_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/run_main.pl") See docs here: http://cmak

[CMake] Where are tests located?

2011-11-10 Thread EXT-York, Gantry
When I do an add_executable( run_main.pl IMPORTED) add_test( test1 run_main.pl) How does it know where run_main.pl is located when you do an out of source build? It seems to look in . Releases Debug MinSizeRel RelWithDebInfo Deployment Development which are directories that I don't even see ex