Ticket #46359: patch-CMakeLists-for-OSX.patch

File patch-CMakeLists-for-OSX.patch, 3.3 KB (added by RJVB (René Bertin), 10 years ago)
  • CMakeLists.txt

    diff --git CMakeLists.txt CMakeLists.txt
    index 3d4287c..273dcdd 100644
    set_package_properties(QJSON PROPERTIES DESCRIPTION "Library to manage JSON obje 
    194194
    195195
    196196include(ConfigureChecks.cmake)
    197 if(NOT WIN32)
     197if(NOT WIN32 AND NOT APPLE)
    198198  configure_file(config-unix.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-unix.h )
    199199  configure_file(config-X11.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-X11.h )
    200200  if(NOT CMAKE_INSTALL_PREFIX STREQUAL "/usr")
    endif(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop") 
    221221
    222222# core apps
    223223if(NOT WIN32)
    224    macro_optional_add_subdirectory( kcheckpass )
    225    macro_optional_add_subdirectory( kwin )
    226    macro_optional_add_subdirectory( ksmserver )
     224   if(NOT APPLE)
     225      macro_optional_add_subdirectory( kcheckpass )
     226      macro_optional_add_subdirectory( kwin )
     227      macro_optional_add_subdirectory( ksmserver )
    227228
    228    find_package(JPEG REQUIRED)
    229    find_package(PNG REQUIRED)
    230    macro_optional_add_subdirectory( ksplash )
     229      find_package(JPEG REQUIRED)
     230      find_package(PNG REQUIRED)
     231      macro_optional_add_subdirectory( ksplash )
    231232
    232    macro_optional_add_subdirectory( powerdevil )
     233      macro_optional_add_subdirectory( powerdevil )
     234   endif(NOT APPLE)
    233235   macro_optional_add_subdirectory( qguiplatformplugin_kde )
    234236   if (NOT CMAKE_SYSTEM_NAME MATCHES Darwin)
    235237      macro_optional_add_subdirectory( ksysguard )
    endif(NOT WIN32) 
    238240
    239241if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
    240242   macro_optional_add_subdirectory(kcontrol)
    241    macro_optional_add_subdirectory(klipper)
    242    macro_optional_add_subdirectory(kmenuedit)
    243    macro_optional_add_subdirectory(krunner)
    244    macro_optional_add_subdirectory(solid-actions-kcm)
    245    macro_optional_add_subdirectory(kstartupconfig)
    246    macro_optional_add_subdirectory(freespacenotifier)
    247    macro_optional_add_subdirectory(kscreensaver)
    248    macro_optional_add_subdirectory(kinfocenter)
     243   if(NOT APPLE)
     244      macro_optional_add_subdirectory(klipper)
     245      macro_optional_add_subdirectory(kmenuedit)
     246      macro_optional_add_subdirectory(krunner)
     247      macro_optional_add_subdirectory(solid-actions-kcm)
     248      macro_optional_add_subdirectory(kstartupconfig)
     249      macro_optional_add_subdirectory(freespacenotifier)
     250      macro_optional_add_subdirectory(kscreensaver)
     251      macro_optional_add_subdirectory(kinfocenter)
     252   endif(NOT APPLE)
    249253
    250254   # data
    251255   macro_optional_add_subdirectory(doc)
    if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop") 
    254258      macro_optional_add_subdirectory(ktouchpadenabler)
    255259   endif (Q_WS_X11)
    256260
    257    if(NOT WIN32)
     261   if(NOT WIN32 AND NOT APPLE)
    258262      macro_optional_add_subdirectory(kcminit)
    259263      macro_optional_add_subdirectory(khotkeys)
    260264      macro_optional_add_subdirectory(kwrited)
    if(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop") 
    269273   endif(X11_Xau_FOUND AND X11_Xdmcp_FOUND)
    270274endif(${KDE_PLATFORM_PROFILE} STREQUAL "Desktop")
    271275
    272 if(NOT WIN32)
     276if(NOT WIN32 AND NOT APPLE)
    273277    # data
    274278    macro_optional_add_subdirectory(cursors)
    275279endif(NOT WIN32)
    macro_optional_add_subdirectory(statusnotifierwatcher) 
    279283macro_optional_add_subdirectory(kstyles)
    280284
    281285########### install files ###############
    282 if(NOT WIN32)
     286if(NOT WIN32 AND NOT APPLE)
    283287  install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/startkde DESTINATION ${BIN_INSTALL_DIR})
    284288endif(NOT WIN32)
    285289