-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
ConfigureDependencies.cmake
41 lines (31 loc) · 1.3 KB
/
ConfigureDependencies.cmake
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
include(cmake/libretro-common.cmake)
include(cmake/libslirp.cmake)
if (HAVE_OPENGL OR HAVE_OPENGLES)
# Ensure that melonDS can find libretro's headers...
target_include_directories(core SYSTEM PRIVATE "${libretro-common_SOURCE_DIR}/include")
target_include_directories(core PRIVATE "${CMAKE_SOURCE_DIR}/src/libretro")
if (HAVE_OPENGL)
target_include_directories(core SYSTEM PRIVATE "${OPENGL_INCLUDE_DIR}")
endif ()
if (HAVE_OPENGLES1)
target_include_directories(core SYSTEM PRIVATE "${OpenGLES_V1_INCLUDE_DIR}")
endif ()
if (HAVE_OPENGLES2)
target_include_directories(core SYSTEM PRIVATE "${OpenGLES_V2_INCLUDE_DIR}")
endif ()
if (HAVE_OPENGLES3)
target_include_directories(core SYSTEM PRIVATE "${OpenGLES_V3_INCLUDE_DIR}")
endif ()
if (HAVE_OPENGLES31)
target_include_directories(core SYSTEM PRIVATE "${OpenGLES_V31_INCLUDE_DIR}")
endif ()
if (HAVE_OPENGLES32)
target_include_directories(core SYSTEM PRIVATE "${OpenGLES_V32_INCLUDE_DIR}")
endif ()
target_compile_definitions(core PUBLIC OGLRENDERER_ENABLED ENABLE_OGLRENDERER)
endif ()
add_common_definitions(core)
if (HAVE_NETWORKING)
# Ensure that the visibility attributes are defined
target_compile_definitions(core PUBLIC BUILDING_LIBSLIRP)
endif()