Have you tried the following?
add_library(pluginName MODULE ....)

Doing that should add the -bundle linker flag, which is probably what you're looking for.

Clint

On 10/24/2009 04:17 PM, Hai Nguyen wrote:
Hi,

I have an existing CMakeList.txt file that I've been using to build Maya plug-ins for Windows and Linux just fine. I've been trying to make it work in MacOS X for a couple days now but with no success. I've googled around and found some very sporadic resources as to how to build MacOS X bundles - but nothing consistent. The problem I'm running into is that I can't seem to set the Mach-O Type. When I use add_executable( pluginName MACOSX_BUNDLE ... ) it adds it as an executable. I was wondering if anyone has attempted something similar before succeeded?

Thanks,
Hai
------------------------------------------------------------------------

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to