Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Tests / ExternalOBJ / Object / CMakeLists.txt
blob6f1d7e3fb83190791da1f8cc1c1288fcd0e04ddd
1 cmake_minimum_required (VERSION 2.6)
2 PROJECT(Object)
3 IF(APPLE)
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})
11 ENDIF(APPLE)
13 ADD_EXECUTABLE(external external_object.cxx external_main.cxx)