~ogre-team/testogre/soc09-samples

« back to all changes in this revision

Viewing changes to CMake/Utils/FindPkgMacros.cmake

  • Committer: sinbad
  • Date: 2009-09-27 15:18:05 UTC
  • Revision ID: svn-v4:8631bf8a-c64b-0410-883c-f3eb003322f7:branches/soc09-samples:9117
Merged trunk changes to r9109 into soc09-samples so that we can perform platform tests & refine
Once again a staged commit because of crappy server performance

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#-------------------------------------------------------------------
 
2
# This file is part of the CMake build system for OGRE
 
3
#     (Object-oriented Graphics Rendering Engine)
 
4
# For the latest info, see http://www.ogre3d.org/
 
5
#
 
6
# The contents of this file are placed in the public domain. Feel
 
7
# free to make use of it in any way you like.
 
8
#-------------------------------------------------------------------
 
9
 
1
10
##################################################################
2
11
# Provides some common functionality for the FindPackage modules
3
12
##################################################################
72
81
# Generate debug names from given release names
73
82
macro(get_debug_names PREFIX)
74
83
  foreach(i ${${PREFIX}})
75
 
    set(${PREFIX}_DBG ${${PREFIX}_DBG} ${i}d ${i}D ${i}_d ${i}_D)
 
84
    set(${PREFIX}_DBG ${${PREFIX}_DBG} ${i}d ${i}D ${i}_d ${i}_D ${i}_debug ${i})
76
85
  endforeach(i)
77
86
endmacro(get_debug_names)
78
87
 
117
126
      /Library/Frameworks
118
127
      /System/Library/Frameworks
119
128
      /Network/Library/Frameworks
 
129
      /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/Frameworks/
120
130
    )
121
131
    FOREACH(dir ${${fwk}_FRAMEWORK_PATH})
122
132
      SET(fwkpath ${dir}/${fwk}.framework)
124
134
        SET(${fwk}_FRAMEWORK_INCLUDES ${${fwk}_FRAMEWORK_INCLUDES}
125
135
          ${fwkpath}/Headers ${fwkpath}/PrivateHeaders)
126
136
        if (NOT ${fwk}_LIBRARY_FWK)
127
 
          SET(${fwk}_LIBRARY_FWK "-framework ${fwk}" CACHE STRING "${fwk} library")
 
137
          SET(${fwk}_LIBRARY_FWK "-framework ${fwk}")
128
138
        endif ()
129
139
      ENDIF(EXISTS ${fwkpath})
130
140
    ENDFOREACH(dir)