Hello,<br>I am a cmake-beginner and I want to &quot;translate&quot; my old project for use with cmake:<br>1) I brought some constants with the preprocessor from the Makefile into my sourcecode (e.g.: g++ -Dconstant=10 main.cpp). How do I do something like this with cmake?<br>
2) Are there constants like &quot;Windows&quot; &quot;Unix&quot; &quot;Linux&quot;, so the&nbsp;compiling&nbsp;of&nbsp;my&nbsp;project&nbsp;could&nbsp;react&nbsp;depending&nbsp;on&nbsp;the&nbsp;system?<br> <br>Sorry for these beginner-questions, but I did not find these solutions on the website...<br>
<br>Thanks,<br>Stephan<br clear="all"><br>