QTfrontend/CMakeLists.txt
changeset 8279 c03d64969112
parent 8223 14d9a3c33650
child 8283 af97cdbb7713
equal deleted inserted replaced
8277:cd2bae15a9a3 8279:c03d64969112
   140 
   140 
   141 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs})
   141 qt4_wrap_cpp(hwfr_moc_srcs ${hwfr_moc_hdrs})
   142 
   142 
   143 
   143 
   144 if(APPLE OR CROSSAPPLE)
   144 if(APPLE OR CROSSAPPLE)
   145     set(hwfr_src ${hwfr_src} InstallController.cpp CocoaInitializer.mm M3Panel.mm M3InstallController.m NSWorkspace_RBAdditions.m)
   145     find_library(iokit_framework NAMES IOKit)
   146     set(HW_LINK_LIBS IOKit ${HW_LINK_LIBS})
   146     set(HW_LINK_LIBS ${iokit_framework} ${HW_LINK_LIBS})
   147 
   147     set(hwfr_src ${hwfr_src} CocoaInitializer.mm
       
   148                              InstallController.cpp
       
   149                              M3Panel.mm
       
   150                              M3InstallController.m
       
   151                              NSWorkspace_RBAdditions.m
       
   152                              )
   148     if(NOT NOAUTOUPDATE)
   153     if(NOT NOAUTOUPDATE)
   149         find_package(Sparkle)
   154         find_package(Sparkle)
   150         if(SPARKLE_FOUND)
   155         if(SPARKLE_FOUND)
   151             add_definitions(-DSPARKLE_ENABLED)
   156             add_definitions(-DSPARKLE_ENABLED)
   152             set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm)
   157             set(hwfr_src ${hwfr_src} AutoUpdater.cpp SparkleAutoUpdater.mm)