-
Notifications
You must be signed in to change notification settings - Fork 80
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
Add CPack support #22
Comments
Thanks I will look into this in near future. Of course PR are welcome :) |
So expect a PR soon ! |
#24 pull request is done :) Thx a lot! Need to improve:
|
You're welcome ! If you've got a custom formatting configuration, yes, publishing it could be quite useful. My main IDE isn't Clion, but I got installed just it case, so that's not an issue. CPack is bundled with CMake, even on Windows systems, however an option to disable / enable CPack totally, and enabling / disabling specific package types, could be a great plus. I'll add a travis section and split the file too, but where would you like the EventBus_CPack.cmake file to be ? (Maybe lib/cmake) |
My format of cmake isn't so important. As you can see there is already
Of course you change can be merged in current state as it is ok. I add approve already. I didn't merge it only because lack of time to test it by my own (just for fun) and I would like to add those above improvements so I don't require them from you :) Of course, if you want to improve it, you are welcome :) |
I formatted EventBus_CPack.cmake through Clion. I kept the package types configuration in the top level CMakeList. |
Thanks! It looks great :) I will try it out & merge on the evening 👍 |
Need to update:
|
Well since I moved the CPack config in the top level cmake file, it takes its config there, I'll move it back to the EventBus (/lib) CMake. |
I didn't thought about distribution this small lib but why not to try & learn something new :) |
I just moved the CPack option back into /lib's CMakeLists, now everything works fine. Here's what would be installed by one of those packages (The built project still appears to be EventBusDev, but it is only since it's the project defined in the top cmake file).
|
So, what I ended up doing is adding That's also what most other projects using CPack uses. I'll make another pull request for those changes. |
I think issue is generally solved but I will leave it for some time to think about Travis upload or other package distribution. (Maybe add as AUR ?) |
The only thing I would change is removed the |
Yeah you are right |
Is your feature request related to a problem? Please describe.
On Linux system it's always easier and cleaner to install everything through the package manager, rather than "make install".
Describe the solution you'd like
The solution I would consider to be the best, since you're already using CMake, is using CPack to build .rpm & .deb files, using the "make package" command.
Describe alternatives you've considered
Alternatives I considered are, evidently, running "make install", or building those package myself. Those ways works, but the first one isn't that clean or recommended, while the second's only issue is not being "official", which would be a shame since it's quite easy to implement.
CMake & CPack documentation
The text was updated successfully, but these errors were encountered: