forked from Cpasjuste/pemu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
47 lines (40 loc) · 1.54 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.5)
#set(CMAKE_VERBOSE_MAKEFILE ON)
# add libcross2d library. If you want to port pfba to another platform,
# you should (may) only need to port libcross2d library.
add_subdirectory(external/libcross2d)
####################
# BUILD OPTIONS
####################
set(OPTION_EMU OFF CACHE STRING "Emulator to build (pfbneo, pnes, psnes)")
set(OPTION_BUILTIN_LIBCONFIG OFF CACHE BOOL "Build libconfig from sources")
set(OPTION_BUILTIN_MINIZIP OFF CACHE BOOL "Build minizip from sources")
set(OPTION_MPV_PLAYER ON CACHE BOOL "Add support for video snaps (mpv)")
set(OPTION_UPDATE_CONFIG OFF CACHE BOOL "Force config file updating")
####################
# BUILD OPTIONS
####################
# linux/windows screen handling options
if (PLATFORM_LINUX OR PLATFORM_WINDOWS)
set(OPTION_RESOLUTION ON CACHE BOOL "Add screen resolution option")
set(OPTION_FULLSCREEN ON CACHE BOOL "Add switch to fullscreen option")
endif ()
# add sscrap (screenscrapper scrapper!) library
add_subdirectory(external/sscrap)
# required for cmake toolchain setup
project(pemu)
set(PROJECT_AUTHOR cpasjuste)
set(VERSION_MAJOR 6)
set(VERSION_MINOR 7)
# pemu (ui)
add_subdirectory(src/skeleton)
# cores
add_subdirectory(src/cores/pfbneo)
add_subdirectory(src/cores/pgen)
add_subdirectory(src/cores/pnes)
add_subdirectory(src/cores/psnes)
if (PLATFORM_LINUX OR PLATFORM_WINDOWS OR PLATFORM_SWITCH OR PLATFORM_PS4 OR PLATFORM_VITA)
add_subdirectory(src/cores/pgba)
else ()
message(WARNING "skipping pgba build, not supported on this platform yet...")
endif ()