-
Notifications
You must be signed in to change notification settings - Fork 26
/
CMakeLists.txt
110 lines (100 loc) · 4.48 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
cmake_minimum_required(VERSION 3.5)
project(game.libretro)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
find_package(Kodi REQUIRED)
find_package(LibretroCommon REQUIRED)
find_package(TinyXML REQUIRED)
find_package(Rcheevos REQUIRED)
include_directories(${KODI_INCLUDE_DIR}
${KODI_INCLUDE_DIR}/..
${PROJECT_SOURCE_DIR}/src
${LIBRETRO_COMMON_INCLUDE_DIRS}
${TINYXML_INCLUDE_DIRS}
${RCHEEVOS_INCLUDE_DIRS})
list(APPEND DEPLIBS ${TINYXML_LIBRARIES})
list(APPEND DEPLIBS ${RCHEEVOS_LIBRARIES})
if(WIN32)
find_package(dlfcn-win32 REQUIRED)
list(APPEND DEPLIBS ${dlfcn-win32_LIBRARIES})
include_directories(${dlfcn-win32_INCLUDE_DIRS})
endif()
set(LIBRETRO_SOURCES src/client.cpp
src/audio/AudioStream.cpp
src/audio/SingleFrameAudio.cpp
src/cheevos/Cheevos.cpp
src/cheevos/CheevosEnvironment.cpp
src/cheevos/CheevosFrontendBridge.cpp
src/GameInfoLoader.cpp
src/input/ButtonMapper.cpp
src/input/ControllerLayout.cpp
src/input/ControllerTopology.cpp
src/input/DefaultControllerTranslator.cpp
src/input/DefaultKeyboardTranslator.cpp
src/input/InputManager.cpp
src/input/InputTranslator.cpp
src/input/LibretroDevice.cpp
src/input/LibretroDeviceInput.cpp
src/libretro/ClientBridge.cpp
src/libretro/FrontendBridge.cpp
src/libretro/LibretroDLL.cpp
src/libretro/LibretroEnvironment.cpp
src/libretro/LibretroResources.cpp
src/libretro/LibretroTranslator.cpp
src/libretro/MemoryMap.cpp
src/log/Log.cpp
src/log/LogAddon.cpp
src/log/LogConsole.cpp
src/settings/LanguageGenerator.cpp
src/settings/LibretroSetting.cpp
src/settings/LibretroSettings.cpp
src/settings/Settings.cpp
src/settings/SettingsGenerator.cpp
src/utils/Timer.cpp
src/video/VideoGeometry.cpp
src/video/VideoStream.cpp)
set(LIBRETRO_HEADERS src/GameInfoLoader.h
src/audio/AudioStream.h
src/audio/SingleFrameAudio.h
src/input/ButtonMapper.h
src/cheevos/Cheevos.h
src/input/ControllerLayout.h
src/input/ControllerTopology.h
src/input/DefaultControllerDefines.h
src/input/DefaultControllerTranslator.h
src/input/DefaultKeyboardDefines.h
src/input/DefaultKeyboardTranslator.h
src/input/InputDefinitions.h
src/input/InputManager.h
src/input/InputTranslator.h
src/input/InputTypes.h
src/input/LibretroDevice.h
src/input/LibretroDeviceInput.h
src/libretro/ClientBridge.h
src/libretro/FrontendBridge.h
src/libretro/LibretroDefines.h
src/libretro/LibretroDLL.h
src/libretro/LibretroEnvironment.h
src/libretro/LibretroResources.h
src/libretro/LibretroTranslator.h
src/libretro/MemoryMap.h
src/log/ILog.h
src/log/LogAddon.h
src/log/LogConsole.h
src/log/Log.h
src/settings/LanguageGenerator.h
src/settings/LibretroSetting.h
src/settings/LibretroSettings.h
src/settings/SettingsGenerator.h
src/settings/Settings.h
src/settings/SettingsTypes.h
src/utils/Timer.h
src/video/VideoGeometry.h
src/video/VideoStream.h)
build_addon(${PROJECT_NAME} LIBRETRO DEPLIBS)
if(ENABLE_INTERNAL_LIBRETROCOMMON)
add_dependencies(${PROJECT_NAME} libretro-common)
endif()
if(ENABLE_INTERNAL_RCHEEVOS)
add_dependencies(${PROJECT_NAME} rcheevos)
endif()
include(CPack)