[CMake] Setting macro while compiling through cmake

Alexander Neundorf a.neundorf-work at gmx.net
Thu Feb 12 12:05:04 EST 2009


On Thursday 12 February 2009, ankit jain wrote:
> Hi all,
>
> If i want to compile through g++ as:
>
> g++ -Dname=value
>
> The same if i want to do with cmake how to do it. Whether i need to make
> some entry in CMakeCache.txt or somewhere else?

This is a lot of documentation available online, which gives you this kind of 
basic information:
http://www.cmake.org/Wiki/CMake#Tutorials
You can also buy the book "Mastering CMake":
http://www.kitware.com/products/books/CMakeBook.html

Best regards
Alex


More information about the CMake mailing list