How to add il.h path from Devil to CMakeList

232 Views Asked by At

I need to use Devil for a school project and im having a bit of trouble.

The #include <IL/il.h> says 'IL/il.h' file not found, so im trying to add the .h path to CMakeList.

I install Devil with homebrew and add the following to CMakeList:

include_directories(/opt/homebrew/Cellar/devil/1.8.0_3/include/IL)

And

add_executable(IL/il.h)

But i get this error:

CMake Error at CMakeLists.txt:16 (add_executable): The target name "IL/il.h" is reserved or not valid for certain CMake features, such as generator expressions, and may result in undefined behavior.

0

There are 0 best solutions below