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
Can't figure out how to include in a Cmake project #2729
Comments
I've got a mac here I can boot up if need be. Into what directories are the Notcurses .h and .so files being installed? |
If I use In the
I feel like from some of the samples I've found online that |
yeah, if it's being installed to can you run the tools e.g. i'll look into this as soon as i can. feel free to take a pass yourself if you're capable! |
Here's
|
Which obviously looks better in the terminal |
ok, so programs are running fine. thanks for confirming that. |
By coincidence I discovered Notcurses today, installed via |
Hi, I'd really like to help out with fixing this, but I am right at the edge of my CMake knowledge. I think the problem lies in the Qualitatively, the notcurses ones, e.g. https://github.com/dankamongmen/notcurses/blob/master/tools/NotcursesConfig.cmake.in look different to other ones I can find in well known projects, e.g. https://github.com/fmtlib/fmt/blob/master/support/cmake/fmt-config.cmake.in In particular, I cannot find any mention of the But I'm not sure where to go from here. Any suggestions on what to try? |
(Apologies for separate posts) I am pretty sure the same thing happens in the Linux CMake files - the |
I've tried both
FetchContent
and using a homebrew install (on macOS) of notcurses and just usingfind_package(Notcurses CONFIG REQUIRED)
, but I can't manage to get notcurses to install correctly.I think notcurses isn't configuring itself correctly in its
.cmake
files. When I try to referenceNotcurses_INCLUDE_DIRS
, it's blank. And when I look in the.cmake
files, it's blank. The libraries get configured properly, though.Now I'm not a particularly advanced C++ developer, so I could be doing something wrong. Do you perhaps have a sample app that's using CmakeLists.txt so I can get a sense of how I should be building this? Or should I be including notcurses as a submodule and building it with my app?
The text was updated successfully, but these errors were encountered: