mirror of
https://github.com/DaedalusX64/daedalus.git
synced 2025-04-02 10:21:48 -04:00
33 lines
1.3 KiB
CMake
33 lines
1.3 KiB
CMake
add_library(HLEGraphics OBJECT
|
|
BaseRenderer.cpp
|
|
CachedTexture.cpp
|
|
ConvertImage.cpp
|
|
ConvertTile.cpp
|
|
DLDebug.cpp
|
|
DLParser.cpp
|
|
Microcode.cpp
|
|
RDP.cpp
|
|
RDPStateManager.cpp
|
|
TextureCache.cpp
|
|
TextureCacheWebDebug.cpp
|
|
TextureInfo.cpp
|
|
TMEM.cpp
|
|
uCodes/Ucode.cpp
|
|
)
|
|
|
|
if(DAEDALUS_GL)
|
|
message(STATUS "Building HLEGraphics with OpenGL support: ${OPENGL_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS}")
|
|
target_include_directories(HLEGraphics PUBLIC ${OPENGL_INCLUDE_DIR} ${GLEW_INCLUDE_DIRS})
|
|
endif(DAEDALUS_GL)
|
|
|
|
if(DAEDALUS_GLES)
|
|
message(STATUS "Building HLEGraphics with OpenGLES support: ${OPENGLES_INCLUDE_DIR} ")
|
|
target_include_directories(HLEGraphics PUBLIC ${OPENGLES_INCLUDE_DIR})
|
|
endif(DAEDALUS_GLES)
|
|
|
|
if(DAEDALUS_PROFILE_HLEGRAPHICS)
|
|
target_compile_options(HLEGraphics PRIVATE -pg)
|
|
endif(DAEDALUS_PROFILE_HLEGRAPHICS)
|
|
|
|
list(APPEND daed_libs "HLEGraphics")
|
|
set(daed_libs ${daed_libs} PARENT_SCOPE)
|