Play-/CMakeLists.txt
Jean-Philip Desjardins 238be12c8e Revert "Add project name in root CMakeLists.txt."
This reverts commit e24267b13e709b147e34e3c2c6a9f87e403b2ea4.
2018-03-05 13:10:18 -05:00

54 lines
1.2 KiB
CMake

cmake_minimum_required(VERSION 3.5)
set(CMAKE_MODULE_PATH
${CMAKE_CURRENT_SOURCE_DIR}/../Dependencies/cmake-modules
${CMAKE_MODULE_PATH}
)
include(Header)
set(BUILD_PSFPLAYER OFF CACHE BOOL "Build PsfPlayer")
set(BUILD_PLAY ON CACHE BOOL "Build Play! Emulator")
set(BUILD_TESTS ON CACHE BOOL "Build Tests")
set(PROJECT_NAME "Play!")
set(PROJECT_Version 0.30)
add_definitions(-DPLAY_VERSION="${PROJECT_Version}")
set(PROJECT_LIBS)
include(PrecompiledHeader)
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)
if(TARGET_PLATFORM_IOS)
add_subdirectory(Source/ui_ios/)
endif(TARGET_PLATFORM_IOS)
if(TARGET_PLATFORM_ANDROID)
add_subdirectory(Source/ui_android/)
endif(TARGET_PLATFORM_ANDROID)
if(TARGET_PLATFORM_WIN32)
add_subdirectory(Source/ui_win32)
endif(TARGET_PLATFORM_WIN32)
endif(BUILD_PLAY)
if(BUILD_TESTS)
enable_testing()
add_subdirectory(tools/AutoTest/)
add_subdirectory(tools/McServTest/)
add_subdirectory(tools/VuTest/)
endif()
if(BUILD_PSFPLAYER)
add_subdirectory(tools/PsfPlayer)
endif(BUILD_PSFPLAYER)