summaryrefslogtreecommitdiffstats
path: root/Tests/ExternalOBJ/Object/CMakeLists.txt
blob: 7c01e54da517c9f6fe147d76203be227d34f0172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
PROJECT(Object)
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)

ADD_EXECUTABLE(external external_object.cxx external_main.cxx)