[CMake] Can't run Cocoa test application in CTest

Bill Hoffman bill.hoffman at kitware.com
Sun Nov 23 14:00:39 EST 2008

Tron Thomas wrote:
> I tried that originally, and it does not work.  When add_executable is 
> used to create an application bundle on MacOS X, it does not simple 
> build an executable program.  It creates an entire directory structure 
> that bundles up the exectuable.  CTest does not seem to understand how 
> to deal with this bundle; it expects a runnable executable as the name 
> for the second argument to add_test.

I thought we had implemented that....

Can you create a bug entry?

Another thing you could try is this:

get_target_property(myBundle LOCATION EXE_LOCATION)

Then use ${EXE_LOCATION} for the executable.


More information about the CMake mailing list