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

automatic dependancy management with conan #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tomatenkuchen
Copy link

Hello!

I wanted to use antigrain as a conan package in another project to avoid dependancy issues. So what I did was:

  1. Rewrite the cmake files in a more modern target based fashion
  2. create a conanfile.py for the dependancies
  3. added clang-format and clang-tidy files to automate formatting and linting
  4. updated readme in the agg-src folder

On my linux machine it compiles well. I hope I didn't break to much.

Is there something useful to this?

Yours
Timo

added clang-tidy and clang-format files for formatting and linting
facelifted cmake files a little
SET(AGG_MINOR_VERSION 1 )
SET(AGG_BUILD_VERSION 1 )
# support conan package manager
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like bad practice. We cannot compile without conan, conan should be used transparently

${antigrain_SOURCE_DIR}/include/ctrl/agg_bezier_ctrl.h
)
target_include_directories(antigrain PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_link_libraries(antigrain PUBLIC CONAN_PKG::expat)
Copy link
Contributor

Choose a reason for hiding this comment

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

Here you link conan package expat insted of cmake target expat


ADD_LIBRARY( antigrain
# main lib
add_library( antigrain STATIC
Copy link
Contributor

Choose a reason for hiding this comment

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

antigrain can also be shared but not for windows

Zardshard pushed a commit to Zardshard/ghaerr-agg-2.6 that referenced this pull request Aug 7, 2023
GerHobbelt pushed a commit to GerHobbelt/agg that referenced this pull request May 10, 2024
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.

None yet

2 participants