# Create shade folders and files

Add a shaders folder in your project root folder.

Create colour.vert and colour.frag in the shaders folder.

<figure><img src="https://3464970502-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3JUKGJZ67JX02QZdPhsy%2Fuploads%2FWeqCApDAlljQdnfpCg97%2F509e49b9-e26e-424f-8003-a0ffae8b2928.png?alt=media&#x26;token=7a61aee0-493f-4edf-bd8a-c7889daf5635" alt=""><figcaption></figcaption></figure>

## modify CMakeLists.txt&#x20;

to include shader.cpp as follows

```cmake
# adding source files to our exectuable programs
add_executable(run01 src/main.cpp src/glad.c src/shader.cpp)
```

copy shader files to the build directory

<pre class="language-cmake"><code class="lang-cmake"><strong># copy shaders
</strong>add_custom_target(CopyShaders ALL
	COMMAND ${CMAKE_COMMAND} -E copy_directory
	"${CMAKE_CURRENT_SOURCE_DIR}/shaders"
	"${CMAKE_CURRENT_BINARY_DIR}/shaders"
)

add_dependencies(run01 CopyShaders)
</code></pre>
