From: Steve P. <pi...@bw...> - 2009-10-22 12:38:12
|
Hi Gordon - You should be able to use something like this: SET(Teem_LIBRARIES air hest biff nrrd ell unrrdu gage limn seek hoover echo ten dye mite) IF(BUILD_EXPERIMENTAL_LIBS) SET(Teem_LIBRARIES ${Teem_LIBRARIES} bane moss coil alan pull) ADD_DEFINITIONS(-DTEEM_BUILD_EXPERIMENTAL_LIBS=1) ELSE(BUILD_EXPERIMENTAL_LIBS) ADD_DEFINITIONS(-DTEEM_BUILD_EXPERIMENTAL_LIBS=0) ENDIF(BUILD_EXPERIMENTAL_LIBS) and then it will be available to the C preprocessor. HTH, -Steve Gordon L. Kindlmann wrote: > Hello, > > I have a Teem Cmake question. > > I'd like to add a new library to Teem, which in some sense is the > final library, in that it will depend upon all the other libraries, > and be used as a way to collect or gather information that is > otherwise scattered around. The best name I could come up with for > this was "meet". For example, "meet" will have a list off all the > airEnums from all the libraries (for now manually mantained), as well > as a list of all the gageKinds, and utilities for setting up gageKinds > (functionality that is currently copied between vprobe, pprobe, and > gprobe). > > However, because we have the BUILD_EXPERIMENTAL_LIBS flag in CMake > (which currently allows the more experimental libraries to be left out > of the compilation), the symbols that are in the final libteem can > vary depending on the CMake settings. This in turn means that C code > in "meet" will need to know the value of BUILD_EXPERIMENTAL_LIBS, in > order to know which values it can refer to. > > What kinds of #ifdef or #defines or whatever will be available to C > pre-processor so that the value of BUILD_EXPERIMENTAL_LIBS can used to > conditionally include or exclude lines code in .c files? > > Gordon > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > teem-users mailing list > tee...@li... > https://lists.sourceforge.net/lists/listinfo/teem-users |