Hi,
I'm trying to get one of the SFML 2.0 builds to work with my own project using cmake. CMake says it found SFML, but the include directory is set to not found. I'm using visual studio 2010.
Here's the code I'm using in cmake:
find_package (SFML REQUIRED)
if (SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
target_link_libraries(OMG_Engine ${SFML_LIBRARIES})
endif (SFML_FOUND)
Here's the cmake output:
Found SFML: SFML_INCLUDE_DIR-NOTFOUND
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
SFML_INCLUDE_DIR
used as include directory in directory C:/Users/Marek/Documents/sfmlTest
How do I fix this?