Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/mac_osx/src/external/cmcrashreporter/CMakeLists.txt @ 8501

Last change on this file since 8501 was 8260, checked in by youngk, 14 years ago

Made the crash reporter work. More or less…

File size: 2.7 KB
Line 
1 #
2 #             ORXONOX - the hottest 3D action shooter ever to exist
3 #                             > www.orxonox.net <
4 #
5 #        This program is free software; you can redistribute it and/or
6 #         modify it under the terms of the GNU General Public License
7 #        as published by the Free Software Foundation; either version 2
8 #            of the License, or (at your option) any later version.
9 #
10 #       This program is distributed in the hope that it will be useful,
11 #        but WITHOUT ANY WARRANTY; without even the implied warranty of
12 #        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 #                 GNU General Public License for more details.
14 #
15 #   You should have received a copy of the GNU General Public License along
16 #      with this program; if not, write to the Free Software Foundation,
17 #     Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 #
19IF(APPLE)
20
21SET_SOURCE_FILES(CCR_FILES
22  CMCrashReporter.m
23  CMCrashReporterGlobal.m
24  CMCrashReporterWindow.m
25)
26
27ORXONOX_ADD_LIBRARY(cmcrashreporter_orxonox
28  ORXONOX_EXTERNAL
29  LINK_LIBRARIES
30    "-framework CoreFoundation"
31    "-framework Cocoa"
32    "-framework AddressBook"
33  SOURCE_FILES
34    ${CCR_FILES}
35)
36
37IF(NOT CMAKE_CONFIGURATION_TYPES)
38  SET(_subdirs .)
39  SET(_default_subdir .)
40ELSE()
41  SET(_subdirs ${CMAKE_CONFIGURATION_TYPES})
42  SET(_default_subdir) # No default subdir
43ENDIF()
44
45FOREACH(_subdir ${_subdirs})
46  GET_FILENAME_COMPONENT(CURRENT_RUNTIME_DIR ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${_subdir} ABSOLUTE)
47
48  # Convenience variables
49  # Note that this is just an empty bundle! The executable itself will
50  # be added at build time
51  SET(DEVBUNDLE_CURRENT_DIR "${CURRENT_RUNTIME_DIR}/${PROJECT_NAME}.app/Contents")
52  SET(DEVBUNDLE_CURRENT_BIN "${DEVBUNDLE_CURRENT_DIR}/MacOS")
53  SET(DEVBUNDLE_CURRENT_RESOURCES "${DEVBUNDLE_CURRENT_DIR}/Resources")
54  SET(DEVBUNDLE_DEFAULT_LANGFILE "English.lproj")
55  SET(DEVBUNDLE_NIB_FILE "CMCrashReporterWindow.nib")
56
57  # Create bundle folder structure
58  FILE(MAKE_DIRECTORY "${DEVBUNDLE_CURRENT_DIR}")
59  FILE(MAKE_DIRECTORY "${DEVBUNDLE_CURRENT_BIN}")
60  FILE(MAKE_DIRECTORY "${DEVBUNDLE_CURRENT_RESOURCES}")
61  FILE(MAKE_DIRECTORY "${DEVBUNDLE_CURRENT_RESOURCES}/${DEVBUNDLE_DEFAULT_LANGFILE}/${DEVBUNDLE_NIB_FILE}")
62 
63  # Populate app with additional NIB file.
64  CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/${DEVBUNDLE_NIB_FILE}/keyedobjects.nib" "${DEVBUNDLE_CURRENT_RESOURCES}/${DEVBUNDLE_DEFAULT_LANGFILE}/${DEVBUNDLE_NIB_FILE}/keyedobjects.nib" COPYONLY)
65  CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/${DEVBUNDLE_NIB_FILE}/designable.nib" "${DEVBUNDLE_CURRENT_RESOURCES}/${DEVBUNDLE_DEFAULT_LANGFILE}/${DEVBUNDLE_NIB_FILE}/designable.nib" COPYONLY)
66
67
68ENDFOREACH(_subdir)
69
70ENDIF(APPLE)
Note: See TracBrowser for help on using the repository browser.