[Cmake] generating exe from build dir

k. holwerda klaas.holwerda at nl.thalesgroup.com
Wed Aug 25 06:28:35 EDT 2004


Hi,

We are trying to configure a Ccode file with Cmake, and this one should be build 
later on to produce an exe, or if possible directly.

Down here is all in a subdir called from the top using SUBDIRS()
On

Unix this works fine, but on VC6 projects files i get the weirdest problems.

Question:

Is it allowed to use a configured file from the ${wxart2dconfig_BINARY_DIR}
( being the produced wxart2d-config.c ) as input for a target (executable)?

Or must i do such a thing in a different manner?

PROJECT( wxart2dconfig )

CONFIGURE_FILE(${wxart2dconfig_SOURCE_DIR}/wxart2d-config.c.in
                ${wxart2dconfig_BINARY_DIR}/wxart2d-config.c
                ESCAPE_QUOTES @ONLY IMMEDIATE )

ADD_EXECUTABLE( wxart2d-config
     ${wxart2dconfig_BINARY_DIR}/wxart2d-config.c
     installed.c
)

Thanks for some help,

Klaas


-- 
Unclassified


More information about the Cmake mailing list