<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[QtCreator 4.4  &amp;&amp; cmake mac project don run by CTRL+R]]></title><description><![CDATA[<p dir="auto">I have set cmake to build bundle in this way:<br />
and its run by build<br />
cmake &amp;&amp; make<br />
after make install the bundle mac is ready to use.<br />
but QtCreator 4.4 give error i set 2 project in the same time<br />
to run in console only ./sax  &amp; bundle other name is this not correct to QtCreator?</p>
<pre><code>   cmake_minimum_required(VERSION 3.7)
   # the Info.plist template to fill after cmake md Info.plist is ready on bundle dir
   set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
   project(Sax VERSION 0.4.0)
   # Project information 2 app one console e other bundle mac.
   set(PRO_MAC_NAME "SaxMac")
   set(CURRENT_VERSION "0.4.0")
   set(PRO_UNIX_NAME "sax")
   # Project Bundle to info plist xml file information.
   set(PROJECT_COMPANY_NAME "Sax Company XX")
   set(PROJECT_DESCRIPTION "A simple app..")
   set(PROJECT_URL "https://www.qt.io/")
   # the property added to Info.plist
   set(MACOSX_BUNDLE_ICON_FILE "macicon.icns")
   # Set the OS X Bundle specific CMake variables which will be used to populate the plist for
   # the application bundle
   set(MACOSX_BUNDLE_INFO_STRING "${PROJECT_NAME}")
   set(MACOSX_BUNDLE_GUI_IDENTIFIER "com.qt.io")
   set(MACOSX_BUNDLE_LONG_VERSION_STRING "${PROJECT_NAME} Version ${CURRENT_VERSION}")
   set(MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME})
   set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${CURRENT_VERSION})
   set(MACOSX_BUNDLE_BUNDLE_VERSION ${CURRENT_VERSION})
   string(TIMESTAMP PROJECT_COPYRIGHT "Copyright © 1999-%Y User Name All Rights Reserved." UTC)
   set(MACOSX_BUNDLE_COPYRIGHT ${PROJECT_COPYRIGHT})
   set(MACOSX_BUNDLE_EXECUTABLE_NAME ${PRO_MAC_NAME})
   # And this part tells CMake where to find and install the file itself
   set(MAC_APP_ICON ${CMAKE_CURRENT_SOURCE_DIR}/resources/macicon.icns)
   set_source_files_properties(${MAC_APP_ICON} PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
   set(CMAKE_CXX_STANDARD 14)
   set(SOURCE_FILES main.cpp)
   find_package( Qt5Core REQUIRED )
   find_package( Qt5Widgets REQUIRED )
   find_package( Qt5Gui REQUIRED )

   #Mac Bundle (Built on Mac)
   add_executable(${PRO_MAC_NAME} MACOSX_BUNDLE main.cpp ${MAC_APP_ICON} )
   qt5_use_modules(${PRO_MAC_NAME} Core Widgets Gui )
   target_link_libraries(${PRO_MAC_NAME} Qt5::Widgets)
   add_executable(${PRO_UNIX_NAME} ${SOURCE_FILES})
   qt5_use_modules(${PRO_UNIX_NAME} Core Widgets Gui )
   target_link_libraries(${PRO_UNIX_NAME} Qt5::Widgets)
   set(APP_MAC_BUNDLE ${PRO_MAC_NAME}.app )
   # shell script or:
   set(MACDEPLOYQT macdeployqt)
   install(CODE "execute_process(COMMAND ${MACDEPLOYQT} ${APP_MAC_BUNDLE} -dmg) ")

</code></pre>
]]></description><link>https://forum.qt.io/topic/83212/qtcreator-4-4-cmake-mac-project-don-run-by-ctrl-r</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 01:30:33 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/83212.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 12 Sep 2017 12:40:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to QtCreator 4.4  &amp;&amp; cmake mac project don run by CTRL+R on Fri, 15 Sep 2017 11:15:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi...<br />
i see vtable error link library error...<br />
i solved to create a normal <a href="http://file.pro" target="_blank" rel="noopener noreferrer nofollow ugc">file.pro</a>...<br />
other way i must create a extra cmake file compatible to QtCreator 4.4...<br />
tanks...</p>
]]></description><link>https://forum.qt.io/post/415468</link><guid isPermaLink="true">https://forum.qt.io/post/415468</guid><dc:creator><![CDATA[patrik08]]></dc:creator><pubDate>Fri, 15 Sep 2017 11:15:37 GMT</pubDate></item><item><title><![CDATA[Reply to QtCreator 4.4  &amp;&amp; cmake mac project don run by CTRL+R on Tue, 12 Sep 2017 21:15:04 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What exact error are you getting ?</p>
]]></description><link>https://forum.qt.io/post/415026</link><guid isPermaLink="true">https://forum.qt.io/post/415026</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Tue, 12 Sep 2017 21:15:04 GMT</pubDate></item></channel></rss>