[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Adding entries to the info.plist file for OS X .app bundles.
From:       James Turner <james.turner () kdab ! com>
Date:       2015-03-23 17:01:03
Message-ID: 446BD529-2E85-4CFF-B92D-BB440E79DFCA () kdab ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


> On 20 Mar 2015, at 08:58, Michael Jackson <mike.jackson@bluequartz.net> wrote:
> 
> to support Retina displays for our app. Should I just create my own template .plist \
> file and use "configure_file" to add items into the file?

You can do something like:


# in our local CMakeModules dir
add MyBundleInfo.plist.in in CMakeModules/

    set_target_properties(myapp PROPERTIES MACOSX_BUNDLE_INFO_PLIST \
MyBundleInfo.plist.in)

And it will be processed instead of the default. Of course you can set all the \
standard values too:

	set_target_properties(myapp PROPERTIES MACOSX_BUNDLE_GUI_IDENTIFIER "com.foo.myapp")


Kind regards,
James


[Attachment #5 (unknown)]

<html><head><meta http-equiv="Content-Type" content="text/html \
charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote \
type="cite" class=""><div class="">On 20 Mar 2015, at 08:58, Michael Jackson &lt;<a \
href="mailto:mike.jackson@bluequartz.net" \
class="">mike.jackson@bluequartz.net</a>&gt; wrote:</div><br \
class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; \
font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; \
letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; \
text-indent: 0px; text-transform: none; white-space: normal; widows: auto; \
word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline \
!important;" class="">to support Retina displays for our app. Should I just create my \
own template .plist file and use "configure_file" to add items into the \
file?</span></div></blockquote></div><br class=""><div class="">You can do something \
like:</div><div class=""><br class=""></div><div class=""><br class=""></div><div \
class=""><div class=""># in our local CMakeModules dir</div><div class="">add \
MyBundleInfo.plist.in in CMakeModules/</div><div class=""><br class=""></div><div \
class="">&nbsp; &nbsp; set_target_properties(myapp PROPERTIES \
MACOSX_BUNDLE_INFO_PLIST MyBundleInfo.plist.in)</div></div><div class=""><br \
class=""></div><div class="">And it will be processed instead of the default. Of \
course you can set all the standard values too:</div><div class=""><br \
class=""></div><div class=""><span class="Apple-tab-span" \
style="white-space:pre">	</span>set_target_properties(myapp PROPERTIES \
MACOSX_BUNDLE_GUI_IDENTIFIER "com.foo.myapp")</div><div class=""><br \
class=""></div><div class=""><br class=""></div><div class="">Kind regards,</div><div \
class="">James</div><div class=""><br class=""></div></body></html>



-- 

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information \
on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic