Bon,
J'ai téléchargé ici :
https://github.com/SFML/SFML cette version pour compiler avec cmake
J'ai réglé tous les problèmes de dépendances.
Pour pouvoir corriger certaines erreurs, j'ai du déplacer le dossier cmake dans src/SFML/
Il nous trouvait pas le fichier Macros.cmake contenu dans le dossier cmake contenu a la racine.
Il me reste maintenant une erreur dans le fichier Macros.cmake
Apparemment, un fonction serait appelée avec le mauvais nombre d'argument.
Mais comme je connais absolument pas l'utilisation de cmake ...
La ligne :
# set the version and soversion of the target (for compatible systems -- mo\
stly Linuxes)
set_target_properties(${target} PROPERTIES SOVERSION ${VERSION_MAJOR})
set_target_properties(${target} PROPERTIES VERSION ${VERSION_MAJOR}.${VERSI\
ON_MINOR})
Les erreurs :
CMake Error at cmake/Macros.cmake:136 (set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
System/CMakeLists.txt:79 (sfml_add_library)
CMake Error at cmake/Macros.cmake:136 (set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
Window/CMakeLists.txt:122 (sfml_add_library)
CMake Error at cmake/Macros.cmake:136 (set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
Network/CMakeLists.txt:52 (sfml_add_library)
CMake Error at cmake/Macros.cmake:136 (set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
Graphics/CMakeLists.txt:115 (sfml_add_library)
CMake Error at cmake/Macros.cmake:136 (set_target_properties):
set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
Audio/CMakeLists.txt:49 (sfml_add_library)
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 2.
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.
Configuring incomplete, errors occurred!