2015-08-15 20:41:02 +00:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2014-04-25 16:57:00 +00:00
|
|
|
|
|
|
|
set(ASMJIT_STATIC TRUE)
|
|
|
|
|
2014-07-10 16:46:10 +00:00
|
|
|
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()
|
|
|
|
|
2014-04-25 16:57:00 +00:00
|
|
|
add_subdirectory( asmjit )
|
2016-01-19 19:24:41 +00:00
|
|
|
add_subdirectory( libpng )
|
2015-08-07 21:53:39 +00:00
|
|
|
# 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")
|
2014-04-25 16:57:00 +00:00
|
|
|
add_subdirectory( rpcs3 )
|