Hi,
I have a project which is build a library fine with CMake (has
around 100 source file).
ADD_LIBRARY ( mylib STATIC a.cpp b.cpp c.cpp etc )
The content in b.cpp is relevant to only some platform platform.
How do I tell CMake that file b.cpp is only to be include as depends
of
On 11/6/07, Nicholas Yue [EMAIL PROTECTED] wrote:
Hi,
I have a project which is build a library fine with CMake (has
around 100 source file).
ADD_LIBRARY ( mylib STATIC a.cpp b.cpp c.cpp etc )
The content in b.cpp is relevant to only some platform platform.
How do I tell CMake
2007/11/6, Salvatore Iovene [EMAIL PROTECTED]:
On 11/6/07, Nicholas Yue [EMAIL PROTECTED] wrote:
As there are hundreds of file, I want to avoid duplicating and add
to maintainence.
Try this:
IF(NOT WIN32)
SET(b_SOUCE b.cpp)
ENDIF(NOT WIN32)
ADD_LIBRARY ( myLib STATIC a.cpp
Zitat von Eric Noulard [EMAIL PROTECTED]:
2007/11/6, Salvatore Iovene [EMAIL PROTECTED]:
On 11/6/07, Nicholas Yue [EMAIL PROTECTED] wrote:
As there are hundreds of file, I want to avoid duplicating and add
to maintainence.
Try this:
IF(NOT WIN32)
SET(b_SOUCE b.cpp)
ENDIF(NOT WIN32)
On 2007-11-06 12:44+0100 Hendrik Sattler wrote:
Zitat von Eric Noulard [EMAIL PROTECTED]:
The general pattern is the following:
# put unconditional sources in
SET(MYLIB_SRC c.cpp g.cpp any otherunconditional source)
# then ADD the conditional ones
IF(WIN32)
SET(MYLIB_SRC ${MYLIB_SRC}
Alan W. Irwin wrote:
However, before I do that work, does anybody know whether LIST(APPEND...)
was available for cmake-2.4.5 (the minimum version of cmake for the
PLplot build)?
To Bill Hoffman: at one time you were keen on committing the results of
cmake --help-full for each version of cmake