2015-10-08 20:44:18 +00:00
|
|
|
# Copyright 2012 Wolfgang Thaller.
|
|
|
|
#
|
|
|
|
# This file is part of Retro68.
|
|
|
|
#
|
|
|
|
# Retro68 is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# Retro68 is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with Retro68. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
set( CMAKE_SYSTEM_NAME RetroCarbon )
|
|
|
|
set( CMAKE_SYSTEM_VERSION 1)
|
|
|
|
|
|
|
|
set( RETRO68_ROOT "@RETRO68_ROOT@" CACHE PATH "path to root of Retro68 Toolchain" )
|
|
|
|
set( CMAKE_INSTALL_PREFIX "${RETRO68_ROOT}/powerpc-apple-macos/" CACHE PATH "installation prefix" )
|
2019-08-17 21:49:17 +00:00
|
|
|
set( CMAKE_SYSTEM_PREFIX_PATH "${RETRO68_ROOT}/powerpc-apple-macos/" )
|
2015-10-08 20:44:18 +00:00
|
|
|
|
|
|
|
set( MAKE_PEF "${RETRO68_ROOT}/bin/MakePEF" )
|
|
|
|
set( MAKE_IMPORT "${RETRO68_ROOT}/bin//MakeImport" )
|
|
|
|
set( REZ "${RETRO68_ROOT}/bin/Rez" )
|
|
|
|
set( REZ_INCLUDE_PATH "${RETRO68_ROOT}/m68k-apple-macos/RIncludes" )
|
|
|
|
|
|
|
|
set( CMAKE_C_COMPILER "${RETRO68_ROOT}/bin/powerpc-apple-macos-gcc" )
|
|
|
|
set( CMAKE_CXX_COMPILER "${RETRO68_ROOT}/bin/powerpc-apple-macos-g++" )
|
2019-01-08 23:11:12 +00:00
|
|
|
set( CMAKE_EXE_LINKER_FLAGS_INIT "-carbon" )
|
2015-10-08 20:44:18 +00:00
|
|
|
|
|
|
|
set( REZ_TEMPLATES_PATH ${REZ_INCLUDE_PATH})
|
|
|
|
|
|
|
|
add_definitions( -DTARGET_API_MAC_CARBON=1 )
|
|
|
|
|
|
|
|
list( APPEND CMAKE_MODULE_PATH "${RETRO68_ROOT}/m68k-apple-macos/cmake" )
|
|
|
|
include(add_application)
|