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

first version of conanfile.py, issue#38 #82

Closed
wants to merge 1 commit into from
Closed

first version of conanfile.py, issue#38 #82

wants to merge 1 commit into from

Conversation

dpronin
Copy link

@dpronin dpronin commented Aug 18, 2021

Provide first version of conanfile.py

Resolves issue#38

Signed-off-by: Denis Pronin [email protected]

Copy link
Owner

@erikzenker erikzenker 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 your contribution :-)

@@ -30,7 +21,7 @@ target_compile_features(inotify_unit_test PRIVATE cxx_std_17)
target_link_libraries(inotify_unit_test
PRIVATE
inotify-cpp::inotify-cpp
Boost::unit_test_framework
CONAN_PKG::boost
Copy link
Owner

Choose a reason for hiding this comment

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

This will force everyone to use conan for compiling the unit test. I would keep the find package approach from cmake and add the package via conan from outside e.g:

conan install . -if build/dependencies/conan -s compiler.libcxx=libstdc++11 --build missing
cmake -S . -B build
cmake --install build/ --prefix /tmp/ -D "CMAKE_MODULE_PATH=${PWD}/build/dependencies/conan"

Copy link
Author

Choose a reason for hiding this comment

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

Where have you seen such an approach?

Copy link
Owner

Choose a reason for hiding this comment

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

endif()

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)
Copy link
Owner

Choose a reason for hiding this comment

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

I would prefer to not force the usage of conan. We could do it as it was done my other project: https://github.com/erikzenker/hsm#conancmake

from conans import ConanFile, CMake, tools

class INotifyCpp(ConanFile):
name = "inotifycpp"
Copy link
Owner

Choose a reason for hiding this comment

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

it is inotify-cpp

@dpronin dpronin closed this Mar 11, 2022
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.

Provide conan package for simple installation
2 participants