-
Notifications
You must be signed in to change notification settings - Fork 116
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
fixed make install, close #335 #354
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
github-actions
bot
added
test
Something about test
core
something about core
repo
something about repo
labels
Sep 27, 2023
I have closed #353 because it had some internal issues with the branch syncing with github. |
Codecov Report
@@ Coverage Diff @@
## master #354 +/- ##
=======================================
Coverage 97.47% 97.47%
=======================================
Files 55 55
Lines 8745 8745
=======================================
Hits 8524 8524
Misses 221 221
Flags with carried forward coverage won't be shown. Click here to find out more.
|
sbaldu
requested review from
sbaldu and
ZigRazor
and removed request for
sbaldu
September 27, 2023 20:43
sbaldu
approved these changes
Sep 28, 2023
ZigRazor
approved these changes
Sep 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Now, we can build the project and run
sudo make install
to install this header library.$(project_dir)/include
to$(project_dir)/include/CXXGraph
$(project_dir)/include/CXXGraph
$(project_dir)/test
,$(project_dir)/examples
,$(project_dir)/benchmark
Why do we need to do this and what's the need?
When installing without this fix, it placed the files and folders of
$(project_dir)/include
, which areCXXGraphConfig.h
CXXGraph.hpp
Edge
Graph
Node
Partitioning
Utility
into/usr/local/include
, hence populating it with a lot of folders.Now with the help of this fix:
we get one single folder
/usr/local/include/CXXGraph
in which every file is located.and can now run this library codes without including a path.
What has been changed?
#include "CXXGraph.hpp"
with#include "CXXGraph/CXXGraph.hpp"
, when running using the include folder#include <CXXGraph/CXXGraph.hpp>
when library is successfully installedNote
I have used
#include "CXXGraph/CXXGraph.hpp"
, instead of#include <CXXGraph/CXXGraph.hpp>
, in the whole codebase here, because we don't know a user has installed the library or not, for the running our provided tests, examples, and benchmarks.using
#include "CXXGraph/CXXGraph.hpp"
and correct CMakeListstarget_include_directories
we can always compile is successfully, for tests, benchmarks and examples.@ZigRazor