On Monday 08 November 2010 18:10:01 Eric Noulard wrote: > > BUT > > suppose I decide to set file1.c and file2.c as some variable "FILES" > > and I want to use a preprocessor say DLONG > > could I do the following? > > > > set(FILES file1.c file2.c ) > > SET_SOURCE_FILES_PROPERTIES(${FILES} PROPERTIES COMPILE_DEFINITIONS > > "-DLONG") > > Off course you can
BUT if I have two files file1.c and file2.c to be compiled with different preprocesser arguments could I do this:- set(FILES file1.c file2.c) SET_SOURCE_FILES_PROPERTIES( file1.c PROPERTIES COMPILE_DEFINITIONS "-DLONG") SET_SOURCE_FILES_PROPERTIES( file2.c PROPERTIES COMPILE_DEFINITIONS "-DINT") _______________________________________________ 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