How to include headers correctly when building statically? (Unix/CMake)

Hallo

I have just started to try this library today, but i am facing an issue when i try to statically compile on Manjaro, using CMake. I can link to the libcinder.a file, but when I include headers, It fails to recognize them. E.g. , If i try to add this header:

#include "cinder/gl/gl.h"

I get the following error:

fatal error: cinder/gl/gl.h: No such file or directory
    2 | #include "cinder/gl/gl.h"

Here is my CMake file:

cmake_minimum_required(VERSION 3.11)
set(CMAKE_CXX_STANDARD 17)

project(....)

include_directories("/Cinder/include/")
link_directories(Cinder/lib/linux/x86_64/ogl/Debug/)

add_executable(binary main.cpp)

target_link_libraries(binary -lGL -lpthread -lncurses -lX11 -lXxf86vm -lcinder)

BTW, I downloaded Cinder from git, and added it to the root of my project folder.
Any ideas what I am doing wrong?
Thank s

There’s a couple of cmake macros provided that should make building a cinder app a bit easier for you. Have a read of the guides and hopefully they’ll point you in the right direction.

Thank for the link ! I’ll have a look at them