[CMake] build of macosx bundle in a subdir

Brad King brad.king at kitware.com
Tue Mar 15 08:18:46 EST 2005


free man wrote:
> 	ADD_EXECUTABLE(CocoaGL MACOSX_BUNDLE ${sources} )
[snip]
> when i make it then i have:
> 
> make[1]: *** No rule to make target
> `/Users/RE/src/CocoaGL/bin/CocoaGL', needed by `all'. 
> Stop.

Several problems have been reported with the bundle feature.  Please 
submit this as a bug report here:

http://www.cmake.org/Bug

> and another question:
> 
> how can i make that the temp files (*.cmake and
> others) goes in a subdir ?

Use an out-of-source build.  Then there are zero files put in the source 
tree:

cd /Users/RE/src
mkdir CocoaGL-build
cd CocoaGL-build
cmake ../CocoaGL

Just be sure to remove all CMake-generated files from the source tree 
first.  You'll also have to change the executable output path to be 
${CocoaGL_BINARY_DIR}/bin.

-Brad


More information about the CMake mailing list