-
Notifications
You must be signed in to change notification settings - Fork 79
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
base: master
Are you sure you want to change the base?
Conversation
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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
unix fixes, add linux github action
Hello!
I wanted to use antigrain as a conan package in another project to avoid dependancy issues. So what I did was:
On my linux machine it compiles well. I hope I didn't break to much.
Is there something useful to this?
Yours
Timo