QTfrontend/CMakeLists.txt
changeset 8688 88a6114a318c
parent 8686 d303da4568b7
child 8833 c13ebed437cb
child 9198 48b92ff6238f
equal deleted inserted replaced
8687:5b6ad1bd6ace 8688:88a6114a318c
   164                          util/platform/InstallController.cpp
   164                          util/platform/InstallController.cpp
   165                          util/platform/M3Panel.mm
   165                          util/platform/M3Panel.mm
   166                          util/platform/M3InstallController.m
   166                          util/platform/M3InstallController.m
   167                          util/platform/NSWorkspace_RBAdditions.m
   167                          util/platform/NSWorkspace_RBAdditions.m
   168                          )
   168                          )
   169     if(NOT NOAUTOUPDATE)
   169     include(${CMAKE_MODULE_PATH}/utils.cmake)
   170         include(${CMAKE_MODULE_PATH}/utils.cmake)
   170     find_package_or_disable_msg(Sparkle NOAUTOUPDATE "Autoupdater will not be built.")
   171         find_package_or_disable(Sparkle NOAUTOUPDATE)
   171     if(SPARKLE_FOUND)
   172         add_definitions(-DSPARKLE_ENABLED)
   172         add_definitions(-DSPARKLE_ENABLED)
   173         list(APPEND hwfr_src util/platform/AutoUpdater.cpp
   173         list(APPEND hwfr_src util/platform/AutoUpdater.cpp
   174                              util/platform/SparkleAutoUpdater.mm)
   174                              util/platform/SparkleAutoUpdater.mm)
   175         list(APPEND HW_LINK_LIBS ${SPARKLE_LIBRARY})
   175         list(APPEND HW_LINK_LIBS ${SPARKLE_LIBRARY})
   176     else()
       
   177         message(STATUS "Sparkle autoupdater disabled")
       
   178     endif()
   176     endif()
   179 endif()
   177 endif()
   180 
   178 
   181 #when debugging, always prompt a console to see fronted messages
   179 #when debugging, always prompt a console to see fronted messages
   182 #TODO: check it doesn't interfere on UNIX
   180 #TODO: check it doesn't interfere on UNIX