mirror of
https://github.com/autc04/Retro68.git
synced 2024-10-07 02:00:42 +00:00
47 lines
1.6 KiB
CMake
47 lines
1.6 KiB
CMake
# 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/>.
|
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
project(Retro)
|
|
|
|
if(CMAKE_SYSTEM_NAME MATCHES Retro68)
|
|
add_subdirectory(libretro)
|
|
|
|
# add library path so that GCC picks up the freshly-built libretro
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR}/libretro)
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libretro)
|
|
|
|
add_subdirectory(Console)
|
|
add_subdirectory(TestApps)
|
|
add_subdirectory(Samples/HelloWorld)
|
|
add_subdirectory(Samples/Raytracer)
|
|
add_subdirectory(Samples/Launcher)
|
|
add_subdirectory(Samples/Dialog)
|
|
add_subdirectory(Samples/SystemExtension)
|
|
else()
|
|
|
|
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)
|
|
|
|
add_subdirectory(ResourceFiles)
|
|
add_subdirectory(MakeAPPL)
|
|
add_subdirectory(ASFilter)
|
|
add_subdirectory(Rez)
|
|
endif()
|