[cmake] Export config properly
@ifcquery any feedback?
Why not keep
project(IfcPlusPlus)
in the cmake file? I don't see why IFCPP is better...
About the lib and bin directory. I have everything in "bin", so everything is in just one place, easy to keep clean or copy stuff to a zip file etc.. And a library file is binary too, so not wrong ;)
Why not keep
project(IfcPlusPlus)in the cmake file? I don't see why IFCPP is better...
There's no real difference between them except that the exported cmake config name has always been IFCPP. It's possible to keep both project(IfcPlusPlus) and project(IFCPP) but I think it's a code smell.
I'll check if it's possible to keep only project(IfcPlusPlus) but export it as IFCPP to keep backwards compatibility.
About the lib and bin directory. I have everything in "bin", so everything is in just one place, easy to keep clean or copy stuff to a zip file etc..
I find it hard to remember any other project with this installation layout. Pretty much every other library uses lib for libs (.lib, .a and .so). I believe your use cases are covered by cmake --build --target clean (or clean option in VS) and cpack -G ZIP.