How can you link GLEW to a project with CMake?

We've been trying to link GLEW to our project using CMake for at least 3 hours without any success so any help is accepted. 

I'm using the FindGLEW.cmake which comes with CMake 3.1.0

**CMakeLists.txt**

```
find_package(GLEW REQUIRED)
if (GLEW_FOUND)
    include_directories($(GLEW_INCLUDE_DIRS))
endif()

```

**Environment Variables**

![enter image description here](https://i.stack.imgur.com/eJSQJ.png)
![enter image description here](https://i.stack.imgur.com/oHgYp.png)

I'm using **MinGW w64** to compile the sources and we successfully linked GLFW and GLM just by copying the includes and libs to their respective folders, but after doing the same with GLEW, CMake still couldn't find it.

Sorry if I wasn't clear enough while formulating the question. I will provide any additional information required.

---

Edit: I've managed to link the header files by specifying their location in the CMake Cache file, though I'm getting undefined reference to glew functions like `glewInit()`.