On Tuesday 23 November 2010 05:43:17 Michael Hertling wrote:
> On 11/22/2010 10:39 PM, luxInteg wrote:
> > Greetings
> > I am learning cmake
> > 
> > I have a small project     to be installed in some directory $INSTALLED
> > =/whatever/installed/directory/is
> > 
> > 
> > I have some files say  fila1.c ..File2.c  to compile   with a
> > preprocessor that includes a reference to  $INSTALL
> > how do I set  the compile properties of files with this?
> > 
> > do I do :-
> > -DWITH_INSTALL_DIR or
> > -Dwhatever_installed_directory_is (i.e. for example -D/usr/local)
> > or ?????
> 
> Consider ADD_DEFINITIONS(-DWITH_INSTALL_DIR=...); alternatively, you
> might add "WITH_INSTALL_DIR=..." to the COMPILE_DEFINITIONS target/
> directory/source properties.
> 
will give it a try iand report findings,   
ttnanks for the  help
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to