Add initial work on Qt frontend

This commit is contained in:
Connor McLaughlin
2019-12-31 16:17:17 +10:00
parent 98214a9327
commit f3e9c3ec8c
64 changed files with 3490 additions and 14 deletions

View File

@ -4,6 +4,11 @@ project(duckstation C CXX)
# Pull in modules.
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules/")
if(NOT ANDROID)
option(BUILD_SDL_FRONTEND "Build the SDL frontend" ON)
option(BUILD_QT_FRONTEND "Build the Qt frontend" ON)
endif()
# Common include/library directories on Windows.
if(WIN32)
@ -30,8 +35,15 @@ endif()
# Required libraries.
if(NOT ANDROID)
find_package(SDL2 REQUIRED)
else()
if(BUILD_SDL_FRONTEND)
find_package(SDL2 REQUIRED)
endif()
if(BUILD_QT_FRONTEND)
find_package(Qt5 COMPONENTS Core Gui Widgets REQUIRED)
endif()
endif()
if(ANDROID)
find_package(EGL REQUIRED)
endif()
@ -117,4 +129,4 @@ add_subdirectory(src)
if(ANDROID)
add_subdirectory(android/app/src/cpp)
endif()
endif()