Programming

Useful extensions for CMake

When using cmake for more than just simple projects it is lacking in various aspects. Some list and string functions are missing. Interaction with command line applications and the file system are harder than they need to be. Especially however using structured data (maps and objects) and more complex funtional programming is not easy at…

dynamically calling “any” thing in C++

Extending upon boost’s any class which stores a type and a void ptr to any type of value, I created a callable version were you can assign any function, lambda, memberfunction etc. to the any and call it dynamically. This is a basic and important step for runtime reflection which I’m currently working on. Tell…

Reading and Writing JSON with CMake

While working on a package manager for CMake I came across the problem of finding a suitable format for my package descriptor files. First I thought about and tried using plain old CMake file that simply sets variables and can be included to access its contents. It was very quick and easy to implement. Hierarchical…

Object Oriented CMake: Next Iteration

I worked on my object oriented extensions for CMake  and am on a much higher level of usability than before! try it at https://github.com/toeb/oo-cmake  and as always: Feedback is most welcome See the following object tutorial for ease of use: (for the current version look at the readme.md on github) ### using objects ### =============…

Objects and Maps in CMake

Get it at https://github.com/toeb/oo-cmake and tell me if you like it For more complex build system features oo programming would be a major boon. So I took it upon myself to create a usable and tested oo-extension for cmake (in pure CMake) so I could continue developing and extending my plattform independent tooling support (cutil) . It’s…