This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Header Files in Zephir Project

Hi

When I generate a Zephyr Project with SES I get all c-files from CMakeLists.txt in the SES Project tree.

But I want also the h-files in the project tree.

How can I add them?

Reason: search in solution or project (with SES) only search in files from the project tree.

Now nothing is found in any h-file.

Thanks for any idea.

Parents
  • Not sure if I understand your issue correctly but if the compiler is having trouble finding the header files that you have included in your source files then you probably need to add these lines to your CMakeLists.txt file of your project to include the directory of your includes into the project

    zephyr_library_include_directories(.)
    zephyr_library_include_directories(PATH_TO_OTHER_INCLUDE_FILES)

Reply
  • Not sure if I understand your issue correctly but if the compiler is having trouble finding the header files that you have included in your source files then you probably need to add these lines to your CMakeLists.txt file of your project to include the directory of your includes into the project

    zephyr_library_include_directories(.)
    zephyr_library_include_directories(PATH_TO_OTHER_INCLUDE_FILES)

Children
Related