I'm working on a project that consists of a number of .c files. Therefore, to simplify things I'm using cmake to build files. The following code is in my CMakeLists.txt:
set(SOURCE_FILES
utils.c
importLXCat.c
monte_carlo.c
object.c
vector.c
errors.c
scalar.c
d2_matrix.c
mt19937ar.c
randn.c)
link_libraries(m)
add_library(methes_core ${SOURCE_FILES})
Then, in the terminal I build the cake using cmake -H. -Bbuild
. Everything is fine till now.
In the next step, when I complete building using cmake --build build -- -j3
, I get the error: gtk/gtk.h: No such file or directory.
I've used #include <gtk/gtk.h>
in a couple of C files in my project.
It'd be great if someone can help me.