CMake cannot find freeglut on windows in Clion
问题 I've been stuck for a while now and I can't figure out how to get freeglut working. I thought I knew what it was asking me to do, so I added that set(prefix_path) line but it didn't do anything. Am I supposed to write my own freeglut-config.cmake or what? Note: I am using the freeglut for MinGW package from this website CMake File: cmake_minimum_required(VERSION 3.7) project(HW1) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES Triangle.cpp) set(CMAKE_PREFIX_PATH "C:/freeglut") find_package(GLEW