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

Use Stanford c++ library into cmakelist.txt #52

Open
kargarisaac opened this issue Aug 3, 2019 · 3 comments
Open

Use Stanford c++ library into cmakelist.txt #52

kargarisaac opened this issue Aug 3, 2019 · 3 comments

Comments

@kargarisaac
Copy link

Hello,
Thank you for the great library. I want to use this library in CLion and add it into cmakelist.txt file. I use:

file(GLOB SOURCES
StanfordCPPLib/collections/.h
StanfordCPPLib/collections/
.cpp
StanfordCPPLib/graphics/.h
StanfordCPPLib/graphics/
.cpp
StanfordCPPLib/io/.h
StanfordCPPLib/io/cpp
StanfordCPPLib/private/
.h
StanfordCPPLib/private/
.cpp
StanfordCPPLib/system/.h
StanfordCPPLib/system/
.cpp
StanfordCPPLib/util/.h
StanfordCPPLib/util/
.cpp
)

add_executable(myproject ${SOURCES})

But when I for example include strlib.h in my code, It says that : private/init.h: No such file or directory.

Do you have any idea how to make it work?

Thanks

@lorarjohns
Copy link

I have this problem as well.

fatal error: private/init.h: No such file or directory
32 | #include "private/init.h" // ensure that Stanford C++ lib is initialized

@xuehao
Copy link

xuehao commented Sep 22, 2023

https://github.com/xuehao/SimpleCxxLib

I maintain a CMake version fork for the textbook library.

@DrErickson
Copy link

DrErickson commented Aug 23, 2024

I created a fork that uses CMake and the Qt version of the Stanford Library (not the java version maintained by xuehao).

https://github.com/DrErickson/stanford-cpp-library/

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

4 participants