QTfrontend/CMakeLists.txt
changeset 8686 d303da4568b7
parent 8666 1652c1d9adc8
child 8688 88a6114a318c
equal deleted inserted replaced
8685:c0e54583296e 8686:d303da4568b7
   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     if(NOT NOAUTOUPDATE)
   170         find_package(Sparkle)
   170         include(${CMAKE_MODULE_PATH}/utils.cmake)
   171         if(SPARKLE_FOUND)
   171         find_package_or_disable(Sparkle NOAUTOUPDATE)
   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()
   176     else()
   177             message(FATAL_ERROR "Missing Sparkle! Rerun cmake with -DNOAUTOUPDATE=on to disable autoupdating")
   177         message(STATUS "Sparkle autoupdater disabled")
   178         endif()
       
   179     endif()
   178     endif()
   180 endif()
   179 endif()
   181 
   180 
   182 #when debugging, always prompt a console to see fronted messages
   181 #when debugging, always prompt a console to see fronted messages
   183 #TODO: check it doesn't interfere on UNIX
   182 #TODO: check it doesn't interfere on UNIX