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

fixed make install, close #335 #353

Closed
wants to merge 8 commits into from

Conversation

AryanGitHub
Copy link
Contributor

Now, we can build the project and run sudo make install to install this header library.

  • A description of the changes proposed in the pull request.
  1. I moved the files src from $(project_dir)/include to $(project_dir)/include/CXXGraph
  2. fixed the relative headers within $(project_dir)/include/CXXGraph
  3. fixed header links in $(project_dir)/test , $(project_dir)/examples , $(project_dir)/benchmark
  • Finally to make sure everything is working
  1. got successfully compiled with a new header.
  2. run tests, examples,and 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 are CXXGraphConfig.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?

  • replace #include "CXXGraph.hpp" with #include "CXXGraph/CXXGraph.hpp", when running using the include folder
  • and use #include <CXXGraph/CXXGraph.hpp> when library is successfully installed

Note

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 CMakeLists target_include_directories we can always compile is successfully, for tests, benchmarks and examples.

@ZigRazor

@github-actions github-actions bot added test Something about test core something about core repo something about repo labels Sep 26, 2023
@ghost
Copy link

ghost commented Sep 26, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@AryanGitHub
Copy link
Contributor Author

the building is failing due to #348
once that fixed, the build should work, as it was on my local system.

@ZigRazor
Copy link
Owner

Fix merge conflicts please

* Add nodeSet member for Graph class

* Use cached nodeSet in all algorithms

* Add test for graphs with isolated nodes

* Fix typo in overload of addEdge

* Formatting

* Fix type in graphTest

* Delete Edges linked to removed Node in removeNode

* Add more tests for addNode and removeNode methods

* Add test for getNode method

* Restore original use of nodeSet and cache only isolated nodes

* Add checks on size of isolatedNodesSet

* Add test of set data for isolated node

* Small fix
@AryanGitHub AryanGitHub deleted the findingInstallBug branch September 27, 2023 19:54
@AryanGitHub
Copy link
Contributor Author

AryanGitHub commented Sep 27, 2023

I removed this branch and PR, idk how it was not getting synced with github.
i have made a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core something about core repo something about repo test Something about test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants