[Cmake] generating exe from build dir
William A. Hoffman
billlist at nycap.rr.com
Wed Aug 25 11:02:51 EDT 2004
I think that should work. What problems are you having with Visual studio 6?
The only problem I could see is that if the .in file changes, then cmake will
re-run and visual studio 6 will ask you to reload all the projects.
-Bill
At 06:28 AM 8/25/2004, k. holwerda wrote:
>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
>_______________________________________________
>Cmake mailing list
>Cmake at www.cmake.org
>http://www.cmake.org/mailman/listinfo/cmake
More information about the Cmake
mailing list