Hi there,
It seems like a really simple thing, but i just can't manage to get it working. The error is that the my generated vc project doesn't recognize GL_ARRAY_BUFFER and other stuff which is usually resolved by linking to GLEW. I understand that GLEW is already included in SFML as long as we declare static linking true. Here is the CMake code:
#other stuff
# OpenGL
find_package(OpenGL)
# SFML
if(WIN32)
set(SFML_STATIC_LIBRARIES TRUE)
endif(WIN32)
set(SFML_INCLUDE_DIR "${SharedDependencies}/Shared")
find_package(SFML COMPONENTS system window graphics)
include_directories(${SFML_INCLUDE_DIR})
add_executable(App main.cpp)
target_link_libraries(App Core)
target_link_libraries(App Graphics)
target_link_libraries(App ${OPENGL_LIBRARIES})
target_link_libraries(App ${SFML_LIBRARIES})
#other stuff
I also tried adding add_definitions(-DSFML_STATIC -DGLEW_STATIC) with no success.
My apologies if this is a redundant question, but I really searched online and none of the solutions worked.
Thanks