There is a small self-written parser cross-platform toy using SDL. The C++ Language. Under Win32 and Win64 is going in mingw-w64, gcc 4.5.1.
I want the following: in Assembly under Windows, link the dependencies statically. Not hunting to carry over a dozen libraries. Now in the build environment have both versions of libraries: static and dynamic linking. By default, gcc prefers to link dynamically. So he chose the static version of the libraries you want to add to them the key static. And then in front required libraries that are dynamically linkouts (OpenGL), add key -dynamic.
Question: how to make/teach cmake to collect the necessary command line?