Hello,
I would use GLFW in my project but didn’t work.
As recommended, put thoses lines in CMake conf to compile glfw with the project
add_subdirectory(/cygdrive/c/Users/Soreth/CLionProjects/glfw-3.2.1/ glfw)
include_directories(/cygdrive/c/Users/Soreth/CLionProjects/glfw-3.2.1/include/)
target_link_libraries(myapp glfw ${GLFW_LIBRARIES})
but when I run my project I got the following error :
CMake Error at /cygdrive/c/Users/Soreth/.CLion2018.3/system/cygwin_cmake/share/cmake-3.13.0/Modules/FindX11.cmake:429 (message):
Could not find X11
Call Stack (most recent call first):
/cygdrive/c/Users/Soreth/CLionProjects/glfw-3.2.1/CMakeLists.txt:212 (find_package)
That’s weird since x11 is linux and I try to compile it under windows.
If someone know how to fix it I’ll be glad.