Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Sefru

Pages: [1]
1
General / Re: SFML 2.5 CMake Migration
« on: July 30, 2018, 05:58:23 pm »
Hi! :)

I'm trying to use cmake to greate make files for a c++ project that uses SFML in linux (I'm using Debian). I have downloaded the SFMLConfig.cmake file linked here, placed it in /usr/share/cmake-3.0/Modules/FindSFML.cmake.

I then try to use the find_package function in my own CmakeLists.txt file as follows:
find_package(SFML 2.5 COMPONENTS graphics audio REQUIRED)

CMake finds the FindSFML.cmake script, and tries to use it, but I get an error saying that:
CMake Error at /usr/share/cmake-3.0/Modules/FindSFML.cmake:139 (message):
  Requested SFML configuration (Shared) was not found


What is the problem here and how can I fix it? Any help would be greatly apreciated.  :)

EDIT:
I forgot to mention, that I have installed SFML and SFML-dev packages. I can also compile SFML programs without problems when I write the makefiles manually. So in that sence everything should be ok. Now the question is just how to get it working with cmake.  :)

Pages: [1]