2012-04-24 01:22:36 +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/>.
|
|
|
|
|
2012-04-05 22:45:04 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
2012-04-05 23:43:44 +00:00
|
|
|
project(Retro)
|
2012-04-06 18:54:45 +00:00
|
|
|
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
2015-07-20 19:38:01 +00:00
|
|
|
|
2015-08-26 20:13:21 +00:00
|
|
|
|
|
|
|
set( REZ_TEMPLATES_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libretro)
|
2015-07-20 19:38:01 +00:00
|
|
|
include(add_application)
|
|
|
|
|
|
|
|
configure_file(cmake/retro68.toolchain.cmake.in cmake/retro68.toolchain.cmake @ONLY)
|
|
|
|
install(DIRECTORY cmake/ DESTINATION cmake FILES_MATCHING PATTERN "*.cmake")
|
|
|
|
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmake/retro68.toolchain.cmake DESTINATION cmake)
|
|
|
|
|
2012-04-05 22:45:04 +00:00
|
|
|
add_subdirectory(libretro)
|
2014-09-30 09:21:08 +00:00
|
|
|
|
|
|
|
# add library path so that GCC picks up the freshly-built libretro
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR}/libretro)
|
2015-07-17 19:07:03 +00:00
|
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libretro)
|
2015-07-20 22:09:06 +00:00
|
|
|
set(REZ_INCLUDE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/libretro:${CMAKE_INSTALL_PREFIX}/RIncludes" )
|
2015-07-20 19:38:01 +00:00
|
|
|
|
2014-09-27 15:21:03 +00:00
|
|
|
add_subdirectory(Console)
|
|
|
|
add_subdirectory(TestApps)
|
2015-07-16 18:57:34 +00:00
|
|
|
add_subdirectory(Samples/HelloWorld)
|
|
|
|
add_subdirectory(Samples/Raytracer)
|
|
|
|
add_subdirectory(Samples/Launcher)
|
2015-07-16 22:32:27 +00:00
|
|
|
add_subdirectory(Samples/Dialog)
|
2015-07-17 23:14:43 +00:00
|
|
|
add_subdirectory(Samples/SystemExtension)
|
2015-07-20 22:09:06 +00:00
|
|
|
|
2012-04-06 18:54:45 +00:00
|
|
|
else()
|
2015-07-15 23:26:11 +00:00
|
|
|
|
2015-07-20 19:38:01 +00:00
|
|
|
set(RETRO68_ROOT ${CMAKE_INSTALL_PREFIX})
|
2015-07-20 22:09:06 +00:00
|
|
|
configure_file(cmake/intree.toolchain.cmake.in cmake/intree.toolchain.cmake @ONLY)
|
2015-07-15 23:26:11 +00:00
|
|
|
|
2014-10-28 21:28:03 +00:00
|
|
|
add_subdirectory(ResourceFiles)
|
2012-04-06 18:54:45 +00:00
|
|
|
add_subdirectory(MakeAPPL)
|
2012-04-13 18:43:27 +00:00
|
|
|
add_subdirectory(ASFilter)
|
2014-10-05 21:52:34 +00:00
|
|
|
add_subdirectory(Rez)
|
2015-07-20 22:09:06 +00:00
|
|
|
|
2012-04-07 22:29:54 +00:00
|
|
|
endif()
|