mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-12-28 00:18:23 +00:00
2d9e02b0a7
Outputs a fatal_error if a version of gcc below 5.1 or 6.1 is being used. #2236
41 lines
1.3 KiB
CMake
41 lines
1.3 KiB
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
set(ASMJIT_STATIC TRUE)
|
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
message(STATUS "No build type selected, default to Release")
|
|
set(CMAKE_BUILD_TYPE "Release")
|
|
endif()
|
|
|
|
if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
|
|
message( FATAL_ERROR "RPCS3 can only be compiled on 64-bit platforms." )
|
|
endif()
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1)
|
|
message( FATAL_ERROR "RPCS3 requires at least gcc-5.1." )
|
|
endif()
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCC AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL 6.1)
|
|
message( FATAL_ERROR "RPCS3 can't be compiled with gcc-6.1, see #1691." )
|
|
endif()
|
|
|
|
add_definitions(-DCMAKE_BUILD)
|
|
|
|
# We use libpng's static library and don't need to build the shared library and run the tests
|
|
set(PNG_SHARED OFF CACHE BOOL "Build shared lib." FORCE)
|
|
set(PNG_TESTS OFF CACHE BOOL "Build tests." FORCE)
|
|
|
|
# Select the version of libpng to use, default is builtin
|
|
if (NOT USE_SYSTEM_LIBPNG)
|
|
add_subdirectory( 3rdparty/libpng )
|
|
endif()
|
|
|
|
option(VULKAN_PREBUILT "" OFF)
|
|
|
|
# TODO: do real installation, including copying directory structure
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE "${PROJECT_BINARY_DIR}/bin")
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG "${PROJECT_BINARY_DIR}/bin")
|
|
add_subdirectory( Vulkan )
|
|
add_subdirectory( rpcs3 )
|
|
add_subdirectory( rsx_program_decompiler )
|