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

Cmake integration #4

Merged
merged 5 commits into from
Nov 12, 2024
Merged

Cmake integration #4

merged 5 commits into from
Nov 12, 2024

Conversation

M2-TE
Copy link
Contributor

@M2-TE M2-TE commented Nov 12, 2024

Implements issue #3

The CMakeLists.txt now contains two header-only targets (INTERFACE in CMake):
tglib::graphs
and
tglib::tables
which can be linked against individually.
If the project is top-level, it also compiles both exampel executables, which could be turned into tests later.

The namespace customization was done using macros at the very top of both graphs.hpp and tables.hpp using TGLIB_GRAPHS_NAMESPACE and TGLIB_TABLES_NAMESPACE respectively.

I also added C++-style include guards in the form of #pragma once to avoid duplicate symbols.

@M2-TE M2-TE changed the title Cmake integration as per Cmake integration Nov 12, 2024
Copy link
Owner

@tdulcet tdulcet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! This looks good to me.

@tdulcet tdulcet linked an issue Nov 12, 2024 that may be closed by this pull request
@tdulcet tdulcet merged commit 60728a7 into tdulcet:master Nov 12, 2024
19 checks passed
@M2-TE M2-TE deleted the cmake-integration branch November 13, 2024 10:30
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

Successfully merging this pull request may close these issues.

CMake integration
2 participants