2008-03-25 18:27:18 +03:00
|
|
|
cmake_minimum_required (VERSION 2.6)
|
2012-08-13 21:47:32 +04:00
|
|
|
project(Object)
|
|
|
|
if(APPLE)
|
2006-03-24 17:15:05 +03:00
|
|
|
# set _CMAKE_OSX_MACHINE to umame -m
|
2012-08-13 21:47:32 +04:00
|
|
|
exec_program(uname ARGS -m OUTPUT_VARIABLE _CMAKE_OSX_MACHINE)
|
2006-03-24 17:15:05 +03:00
|
|
|
# check for Power PC and change to ppc
|
2012-08-13 21:47:32 +04:00
|
|
|
if("${_CMAKE_OSX_MACHINE}" MATCHES "Power")
|
|
|
|
set(_CMAKE_OSX_MACHINE ppc)
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_OSX_ARCHITECTURES ${_CMAKE_OSX_MACHINE})
|
2012-08-13 21:50:14 +04:00
|
|
|
endif()
|
2005-02-04 21:58:11 +03:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
add_executable(external external_object.cxx external_main.cxx)
|