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

Each project needs a SHARED/STATIC library option #48

Open asmodehn opened 10 years ago

asmodehn commented 10 years ago

It can happen that the user needs to change the configuration of the whole build/link hierarchy.

In that case it is helpful to be able to choose in the CMAKE UI to build either STATIC or SHARED library ( or module ? ).

There already is a global CMAKE BUILD_SHARED option. However, because of wkcmake modular projects structure, we should have this option for each project.

asmodehn commented 10 years ago

This should also provide a #define macro, so that this is trivial to do ( in WkPlatform ? ) http://stackoverflow.com/questions/14627597/static-data-in-dll