QTfrontend/CMakeLists.txt
changeset 4910 9dcb2e83b24f
parent 4812 f924be23ffb4
parent 4775 663aa9552bfc
child 5019 e38d1720a0ff
equal deleted inserted replaced
4909:dc6482438674 4910:9dcb2e83b24f
   169 
   169 
   170 if(APPLE)
   170 if(APPLE)
   171     set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m)
   171     set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m)
   172     set(HW_LINK_LIBS IOKit)
   172     set(HW_LINK_LIBS IOKit)
   173 
   173 
   174     find_package(Sparkle)
   174     if(NOT NOAUTOUPDATE)
   175     if(SPARKLE_FOUND)
   175         find_package(Sparkle)
   176                 add_definitions(-DSPARKLE_ENABLED)
   176         if(SPARKLE_FOUND)
   177         set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm)
   177             add_definitions(-DSPARKLE_ENABLED)
   178                 set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS})
   178             set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm)
       
   179             set(HW_LINK_LIBS ${SPARKLE_LIBRARY} ${HW_LINK_LIBS})
       
   180         endif()
   179     endif()
   181     endif()
   180 endif()
   182 endif()
   181 
   183 
   182 
   184 
   183 add_executable(hedgewars WIN32
   185 add_executable(hedgewars WIN32