You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
465 B
14 lines
465 B
16 years ago
|
cmake_minimum_required (VERSION 2.6)
|
||
|
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)
|