1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Experiment a change that should work on all platforms

This commit is contained in:
Mathieu Schroeter 2023-06-28 23:03:00 +02:00
parent b5a58f1a0c
commit b39bfa4952
No known key found for this signature in database
GPG Key ID: 8B9145A5FA9DA8A8

View File

@ -152,18 +152,34 @@ include_directories (${SDLKitchensink_INCLUDE_DIRS})
find_package (PkgConfig REQUIRED)
if (NOT BUILD_JS)
find_package (SDL2 REQUIRED)
#include_directories (${SDL2_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2::Main)
find_package (SDL2_image REQUIRED)
#include_directories (${SDL2_IMAGE_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2::Image)
find_package (SDL2_ttf REQUIRED)
#include_directories (${SDL2_TTF_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2::TTF)
find_package (SDL2_mixer REQUIRED)
#include_directories (${SDL2_MIXER_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2::Mixer)
set (SDL2_DIR "${CMAKE_INSTALL_PREFIX}/lib/cmake/SDL2")
set (SDL2_image_DIR "${CMAKE_INSTALL_PREFIX}/lib/cmake/SDL2_image")
set (SDL2_ttf_DIR "${CMAKE_INSTALL_PREFIX}/lib/cmake/SDL2_ttf")
set (SDL2_mixer_DIR "${CMAKE_INSTALL_PREFIX}/lib/cmake/SDL2_mixer")
if ("${STATIC_BUILD}")
find_package (SDL2 REQUIRED NO_DEFAULT_PATH)
include_directories (${SDL2_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} ${SDL2_STATIC_LIBRARIES})
find_package (SDL2_image REQUIRED NO_DEFAULT_PATH)
include_directories (${SDL2_IMAGE_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2_image::SDL2_image-static)
find_package (SDL2_ttf REQUIRED NO_DEFAULT_PATH)
include_directories (${SDL2_TTF_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2_ttf::SDL2_ttf-static)
find_package (SDL2_mixer REQUIRED NO_DEFAULT_PATH)
include_directories (${SDL2_MIXER_INCLUDE_DIRS})
set (planetblupi_DEPS ${planetblupi_DEPS} SDL2_mixer::SDL2_mixer-static)
else ()
find_package (SDL2 REQUIRED)
include_directories (${SDL2_INCLUDE_DIRS})
find_package (SDL2_image REQUIRED)
include_directories (${SDL2_IMAGE_INCLUDE_DIRS})
find_package (SDL2_ttf REQUIRED)
include_directories (${SDL2_TTF_INCLUDE_DIRS})
find_package (SDL2_mixer REQUIRED)
include_directories (${SDL2_MIXER_INCLUDE_DIRS})
endif ()
endif ()
if (${PB_HTTP_VERSION_CHECK})