asmodehn / wkcmake

Workshop CMake - For quick and easy CMake setup of project, based on simple folder and file naming conventions
BSD 2-Clause "Simplified" License
5 stars 2 forks source link

Need a way to propagate build configuration ( compiler definitions ) in headers #29

Open asmodehn opened 11 years ago

asmodehn commented 11 years ago

We need to define a header file, and a usecase, so that when we build a library A with dependencies ( B C, etc. ) the client using A knows which compiler definitions have been built into libA. For example lib A can have an interface that changes depending on some configuration ( With_OPENGL, etc. ) We need to find a simple and intuitive process for that and automate it.

asmodehn commented 11 years ago

We now use the WkPlatform.h header to propagate the configuration at buildtime in project headers. It seems to work fine... needs lots of tests ;)