From aeafb960b198788b0836e16a70622a4c8863d268 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Mon, 26 Sep 2011 07:54:30 +0000 Subject: OSX - cmake: blenderplayer part 2: Jens Verwiever co-patch Using OSX Bundle (in oppose to Blender dummy .app) as start point for binary. That way we don't need to move the blenderplayer after the bundle is finished and we can rebuild it without doing `make install` I will test more tomorrow, but it should be working now --- source/blenderplayer/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/blenderplayer/CMakeLists.txt') diff --git a/source/blenderplayer/CMakeLists.txt b/source/blenderplayer/CMakeLists.txt index c8bf3b002f1..3ab1b4a3cdd 100644 --- a/source/blenderplayer/CMakeLists.txt +++ b/source/blenderplayer/CMakeLists.txt @@ -63,6 +63,8 @@ if(WIN32 AND NOT UNIX) endif() add_executable(blenderplayer ${EXETYPE} ${CMAKE_CURRENT_BINARY_DIR}/dna.c ../icons/winblender.rc) +elseif(APPLE) + add_executable(blenderplayer MACOSX_BUNDLE ${CMAKE_CURRENT_BINARY_DIR}/dna.c) else() add_executable(blenderplayer ${CMAKE_CURRENT_BINARY_DIR}/dna.c) endif() -- cgit v1.2.3