2018-01-10 22:14:14 +00:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
|
|
|
|
2018-01-10 22:21:53 +00:00
|
|
|
set(CMAKE_MODULE_PATH
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../Dependencies/cmake-modules
|
|
|
|
${CMAKE_MODULE_PATH}
|
|
|
|
)
|
|
|
|
include(Header)
|
2018-01-10 22:14:14 +00:00
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
set(BUILD_PSFPLAYER OFF CACHE BOOL "Build PsfPlayer")
|
|
|
|
set(BUILD_PLAY ON CACHE BOOL "Build Play! Emulator")
|
2018-01-11 15:16:40 +00:00
|
|
|
set(BUILD_TESTS ON CACHE BOOL "Build Tests")
|
2018-01-11 04:37:19 +00:00
|
|
|
|
2018-01-10 22:14:14 +00:00
|
|
|
set(PROJECT_NAME "Play!")
|
|
|
|
set(PROJECT_Version 0.30)
|
|
|
|
add_definitions(-DPLAY_VERSION="${PROJECT_Version}")
|
|
|
|
set(PROJECT_LIBS)
|
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
|
2018-01-10 22:14:14 +00:00
|
|
|
include(PrecompiledHeader)
|
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
if(BUILD_PLAY)
|
|
|
|
if(TARGET_PLATFORM_UNIX)
|
|
|
|
add_subdirectory(Source/ui_unix/)
|
|
|
|
endif(TARGET_PLATFORM_UNIX)
|
|
|
|
|
|
|
|
if(TARGET_PLATFORM_MACOS)
|
|
|
|
add_subdirectory(Source/ui_macosx/)
|
|
|
|
endif(TARGET_PLATFORM_MACOS)
|
2018-01-10 22:14:14 +00:00
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
if(TARGET_PLATFORM_IOS)
|
|
|
|
add_subdirectory(Source/ui_ios/)
|
|
|
|
endif(TARGET_PLATFORM_IOS)
|
2018-01-10 22:14:14 +00:00
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
if(TARGET_PLATFORM_ANDROID)
|
|
|
|
add_subdirectory(Source/ui_android/)
|
|
|
|
endif(TARGET_PLATFORM_ANDROID)
|
2018-01-10 22:14:14 +00:00
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
if(TARGET_PLATFORM_WIN32)
|
|
|
|
add_subdirectory(Source/ui_win32)
|
|
|
|
endif(TARGET_PLATFORM_WIN32)
|
|
|
|
endif(BUILD_PLAY)
|
2018-01-10 22:14:14 +00:00
|
|
|
|
2018-01-11 15:16:40 +00:00
|
|
|
if(BUILD_TESTS)
|
|
|
|
enable_testing()
|
2018-01-12 02:12:00 +00:00
|
|
|
|
2018-01-11 15:16:40 +00:00
|
|
|
add_subdirectory(tools/AutoTest/)
|
|
|
|
add_subdirectory(tools/McServTest/)
|
|
|
|
add_subdirectory(tools/VuTest/)
|
|
|
|
endif()
|
2018-01-12 02:12:00 +00:00
|
|
|
|
2018-01-11 04:37:19 +00:00
|
|
|
if(BUILD_PSFPLAYER)
|
|
|
|
add_subdirectory(tools/PsfPlayer)
|
|
|
|
endif(BUILD_PSFPLAYER)
|