Test compilation on GNU/Linux -> work but we will need to ask the installation of the following libraries : libsdl2-ttf-dev libsdl2-net-dev libsdl2-mixer-dev libsdl2-image-dev

availableIslands
Martin ROUAULT 4 years ago
parent e0d29cd6b4
commit 7b2f1f00d2

@ -11,6 +11,7 @@ add_executable(${PROJECT_NAME} ${MY_SOURCES})
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(SDL2 REQUIRED)
#find_package(SDL2_ttf REQUIRED)
#find_package(SDL2_net REQUIRED)
#find_package(SDL2_image REQUIRED)

@ -1,8 +1,10 @@
#ifndef BUTTON_INCLUDED
#define BUTTON_INCLUDED
#include <SDL2/SDL.h>
#include <SDL2/SDL_ttf.h>
#include <SDL2/sdl.h>
typedef struct
{
SDL_Texture* texture; // sprite ou texture de fond

Loading…
Cancel
Save