2005-02-04 21:58:11 +03:00
|
|
|
PROJECT(Object)
|
2006-03-24 17:15:05 +03:00
|
|
|
IF(APPLE)
|
|
|
|
# set _CMAKE_OSX_MACHINE to umame -m
|
|
|
|
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE _CMAKE_OSX_MACHINE)
|
|
|
|
# check for Power PC and change to ppc
|
|
|
|
IF("${_CMAKE_OSX_MACHINE}" MATCHES "Power")
|
|
|
|
SET(_CMAKE_OSX_MACHINE ppc)
|
|
|
|
ENDIF("${_CMAKE_OSX_MACHINE}" MATCHES "Power")
|
|
|
|
SET(CMAKE_OSX_ARCHITECTURES ${_CMAKE_OSX_MACHINE})
|
|
|
|
ENDIF(APPLE)
|
2005-02-04 21:58:11 +03:00
|
|
|
|
|
|
|
ADD_EXECUTABLE(external external_object.cxx external_main.cxx)
|