Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 25, 2010, 11:05:34 PM (14 years ago)
Author:
rgrieder
Message:

Added CMake code for OS X package configuration.
Not guaranteed to work… Mainly because it requires several adjustments of the paths.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/cmake/LibraryConfig.cmake

    r7521 r7582  
    4040# On Windows using a package causes way less problems
    4141SET(_option_msg "Set this to true to use precompiled dependecy archives")
    42 IF(WIN32)
     42IF(WIN32 OR APPLE)
    4343  OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" ON)
    44 ELSE(WIN32)
     44ELSE()
    4545  OPTION(DEPENDENCY_PACKAGE_ENABLE "${_option_msg}" FALSE)
    46 ENDIF(WIN32)
     46ENDIF()
    4747
    4848# Scripts for specific library and CMake config
    4949INCLUDE(LibraryConfigTardis)
    50 INCLUDE(LibraryConfigApple)
    5150
    5251IF(DEPENDENCY_PACKAGE_ENABLE)
     
    7372                   "Disable LIBRARY_USE_PACKAGE if you have none intalled.")
    7473  ELSE()
    75     INCLUDE(PackageConfigMinGW)
    76     INCLUDE(PackageConfigMSVC)
    77     INCLUDE(PackageConfig) # For both msvc and mingw
     74    IF(WIN32)
     75      INCLUDE(PackageConfigMinGW)
     76      INCLUDE(PackageConfigMSVC)
     77      INCLUDE(PackageConfig) # For both msvc and mingw
     78    ELSEIF(APPLE)
     79      INCLUDE(PackageConfigOSX)
     80    ENDIF(WIN32)
    7881  ENDIF()
    7982ENDIF(DEPENDENCY_PACKAGE_ENABLE)
Note: See TracChangeset for help on using the changeset viewer.