1
General / Re: FindSFML cannot find SFML
« on: December 07, 2013, 10:16:22 pm »
This is the code I use in my CMakeLists file:
And the FindSFML.cmake is this one:
https://github.com/SFML/SFML/blob/master/cmake/Modules/FindSFML.cmake (unmodified)
I added set(SFML_ROOT "C:\\Project Files (x86)\\SFML") just before the find_package call and this did not help either.
Edit:
Apparently its not Project Files (x86) but Program Files (x86)
It works now, thanks for your time and sorry for bothering you with this
Code: [Select]
# Detect and add SFML
find_package(SFML 2 REQUIRED system window graphics network audio)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES})
endif()
And the FindSFML.cmake is this one:
https://github.com/SFML/SFML/blob/master/cmake/Modules/FindSFML.cmake (unmodified)
I added set(SFML_ROOT "C:\\Project Files (x86)\\SFML") just before the find_package call and this did not help either.
Edit:
Apparently its not Project Files (x86) but Program Files (x86)
It works now, thanks for your time and sorry for bothering you with this