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.


Topics - Nirodha_Dukkha

Pages: [1]
1
General / SFML Integration in QTCreator with CMake
« on: March 16, 2019, 07:28:41 am »
Hi all,

I'm trying to get a project built using QTCreator and CMake.

I've successfully run the CMake gui and mingw-32 to build SFML in D:/SFML, and now I'm trying to make a simple QTCreator project that includes some SFML libraries.  My CMakeLists is as follows:

cmake_minimum_required(VERSION 3.1)
project(Learning)

set(SFML_DIR "D:/SFML/lib/cmake/SFML")
find_package(SFML 2.5 COMPONENTS graphics audio system REQUIRED)

add_executable(${PROJECT_NAME} "main.cpp")
target_link_libraries(SFMLTest sfml-graphics sfml-audio)


When I ask QTCreator to run CMake, it gives me the following error:

Could not find a configuration file for package "SFML" that is compatible
  with requested version "2.5".

The following configuration files were considered but not accepted:

D:/SFML/lib/cmake/SFML/SFMLConfig.cmake, version: 2.5.1 (32bit)



As far as I can tell, I've exactly followed the sticky post in this forum about migrating to SFML 2.5+... any ideas what could be going wrong?  I'm a few days into google searching for help, with no luck.

Pages: [1]