1 cmake_minimum_required (VERSION 2.6)
4 # set _CMAKE_OSX_MACHINE to umame -m
5 EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE _CMAKE_OSX_MACHINE)
6 # check for Power PC and change to ppc
7 IF("${_CMAKE_OSX_MACHINE}" MATCHES "Power")
8 SET(_CMAKE_OSX_MACHINE ppc)
9 ENDIF("${_CMAKE_OSX_MACHINE}" MATCHES "Power")
10 SET(CMAKE_OSX_ARCHITECTURES ${_CMAKE_OSX_MACHINE})
13 ADD_EXECUTABLE(external external_object.cxx external_main.cxx)