Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find Header files #195

Open
ENate opened this issue Dec 9, 2024 · 2 comments
Open

Cannot find Header files #195

ENate opened this issue Dec 9, 2024 · 2 comments

Comments

@ENate
Copy link

ENate commented Dec 9, 2024

Hi there,
Thanks for your template. I wish to use it for a project and tried building it first. When using Neovim/vim and Eclipse C++, I find that the source/*cpp and main.cpp cannot find the header files. I also noticed that the doctest.h, cxxopts, and etc (with other similar downloaded libs) are not available when developing on these IDEs. I am using clangd on Ubuntu 22.04, and even after adding

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

to:

https://github.com/TheLartians/ModernCppStarter/blob/master/CMakeLists.txt

in order to generate the config database, these libs do not appear in the resulting compile_config.jsondatabase, as the config database contain only the fmt-lib included. Any help will be greatly appreciated.

Thanks.

@ClausKlein
Copy link
Contributor

ClausKlein commented Dec 13, 2024

There are more than 1 entry points prepared in this project:

  • ./all
  • ./test
  • ./standalone
  • ./documentation
  • ./

Most IDE has problems with this!

Notice too, this template doesn't use/support CMake FILE_SET

So it is not so modern as it sounds 🥴

You may find some cmake related improvements here : https://github.com/ClausKlein/ModernCmakeStarter

@ENate
Copy link
Author

ENate commented Dec 13, 2024

Thanks a lot for the template. I will check if this is better on the IDEs. I really appreciate this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants