mirror of
https://github.com/jpd002/Play-.git
synced 2025-04-28 13:47:57 +03:00

Some checks failed
Build macOS / build_macos (push) Has been cancelled
Build Android / build_android (apk) (push) Has been cancelled
Build Android / build_android (libretro) (push) Has been cancelled
Build Linux ARM32 / build_linux_arm32 (push) Has been cancelled
Build Linux ARM64 / build_linux_arm64 (push) Has been cancelled
Build Windows Psf / build_windows_psf (off, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows Psf / build_windows_psf (on, x86_64, Visual Studio 16 2019, installer64.nsi, x64) (push) Has been cancelled
Build Windows / build_windows (x86_32, Visual Studio 16 2019, installer32.nsi, win32_msvc2019, Win32) (push) Has been cancelled
Build Windows / build_windows (x86_64, Visual Studio 16 2019, installer64.nsi, win64_msvc2019_64, x64) (push) Has been cancelled
Check Format / run_clangformat (push) Has been cancelled
Build iOS / build_ios (push) Has been cancelled
Build JavaScript / build_js (push) Has been cancelled
Build Linux / build_linux (push) Has been cancelled
44 lines
1.2 KiB
CMake
44 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.5)
|
|
|
|
set(CMAKE_MODULE_PATH
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Dependencies/cmake-modules
|
|
${CMAKE_MODULE_PATH}
|
|
)
|
|
|
|
include(Header)
|
|
|
|
project(GSH_OpenGL)
|
|
|
|
if(NOT TARGET Framework_OpenGl)
|
|
add_subdirectory(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../../deps/Framework/build_cmake/FrameworkOpenGl
|
|
${CMAKE_CURRENT_BINARY_DIR}/FrameworkOpenGl
|
|
)
|
|
endif()
|
|
list(APPEND GSH_OPENGL_PROJECT_LIBS Framework_OpenGl)
|
|
|
|
if(NOT TARGET app_shared)
|
|
add_subdirectory(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../app_shared
|
|
${CMAKE_CURRENT_BINARY_DIR}/app_shared
|
|
)
|
|
endif()
|
|
list(APPEND GSH_OPENGL_PROJECT_LIBS app_shared)
|
|
|
|
if(TARGET_PLATFORM_UNIX_ARM)
|
|
list(APPEND GSH_OPENGL_COMPILE_OPTIONS "-mfpu=neon")
|
|
endif()
|
|
|
|
if(TARGET_PLATFORM_UNIX AND NOT TARGET_PLATFORM_UNIX_ARM AND NOT TARGET_PLATFORM_UNIX_AARCH64)
|
|
list(APPEND GSH_OPENGL_COMPILE_OPTIONS -msse -msse2 -mssse3)
|
|
endif()
|
|
|
|
add_library(gsh_opengl STATIC
|
|
GSH_OpenGL.cpp
|
|
GSH_OpenGL.h
|
|
GSH_OpenGL_Shader.cpp
|
|
GSH_OpenGL_Texture.cpp
|
|
)
|
|
target_link_libraries(gsh_opengl Framework_OpenGl ${GSH_OPENGL_PROJECT_LIBS})
|
|
target_include_directories(gsh_opengl PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/Source/gs/GSH_OpenGL/)
|
|
target_compile_options(gsh_opengl PRIVATE ${GSH_OPENGL_COMPILE_OPTIONS})
|