Cmake issues
Posted: Mon Jul 24, 2023 1:47 pm
Hey everyone, I have a question which is heavily geared towards Cmake. I've done a lot of research on the topic but can't seem to find a solution. My project Structure is as follows:
Proj:
-main(main folder)
-main.cpp/.hpp(file inside main)
-cmakelist.txt(file inside main
-ui(folder inside main)
-ui.c(file inside ui)
-cmakelist.txt(file inside ui)
Currently I have used the add_library() function in Cmake so that main can access all the methods of ui. What i want to do now is do the opposite, so that UI can access all the methods of main. I've made some progress but my main.cpp file has a lot of #includes so I always run into cannot find file/file does not exist when trying to access it from the ui.c.
Thanks in advance!
Proj:
-main(main folder)
-main.cpp/.hpp(file inside main)
-cmakelist.txt(file inside main
-ui(folder inside main)
-ui.c(file inside ui)
-cmakelist.txt(file inside ui)
Currently I have used the add_library() function in Cmake so that main can access all the methods of ui. What i want to do now is do the opposite, so that UI can access all the methods of main. I've made some progress but my main.cpp file has a lot of #includes so I always run into cannot find file/file does not exist when trying to access it from the ui.c.
Thanks in advance!