remotely similar (at
least in the 2.8.12 manual, that is the cmake version I'm using for
platform 'purity' issues...)
--
Ing. Gabriele Greco, DARTS Engineering
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/
On Tue, May 3, 2011 at 4:15 PM, Tyler wrote:
> It doesn't work if you just include your icon file as one of the
> source files in the call to add_executable()/add_library()?
>
> What do you mean by "cross building"? Do you mean cross-compiling? If
> so, from what platform to win32?
>
>
I'm compil
I've seen that my win32 binaries crossbuilt with cmake do not have icons, so
> I googled around for this problem and I found this:
>
> 0011773: CMake ignore .RC files when cross building
>
> It seems it's not yet solved, what I'm asking here if there is a
> workaround, something like to build with
d with a custom command the rc file (I can do it), and
then add it to the project binary with add_executable (this doesn't work).
--
Ing. Gabriele Greco, DARTS Engineering
Tel: +39-0105761240 Fax: +39-0105760224
s-mail: Via G.T. Invrea 14 -
lToGtrIntf.hMonitorToSupv/MonitorToSupvIntf.h
VldToProc/VldToProcIntf.h
GfgToGcfg/GfgToGcfgImpl.hProcToVld/ProcToVldImpl.h
VldToSfd/VldToSfdImpl.h
GfgToGcfg/GfgToGcfgIntf.h ProcToVld/ProcToVldIntf.h
VldToSfd/VldToSfdIntf.h
)
--
Ing. Gabriele Greco, DARTS Engineering
>
> Then you haven't read or understood my message ;-) Instead of calling
> idlcc directly in the add_custom_command, you call a wrapper script,
> that sets the PATH environment variable, and *then* invokes idlcc.
>
Ok, I implemented your solution and it works, thanks!
One additional comment: Cre
> And then configure and run it like this:
>
> CMakeLists.txt:
> ---
> # ...
> configure_file(foo_wrapper.cmake.in
>"${CMAKE_CURRENT_BINARY_DIR}/foo_wrapper.cmake" @ONLY)
> add_custom_command(OUTPUT bar
> COMMAND "${CMAKE_COMMAND}" -P
>"${CMAKE_CURRENT_BINARY_DIR}/foo_wrapper.c
t(ENV{PATH} "${PROJECT_SOURCE_DIR}/ext_bin/DFC:$ENV{PATH}")
but as I found googling around this command works only in the "cmake" stage,
but not on the generated makefiles.
There is a way to tell CMake to make a change to an enviroment variable that
is effective also inside the generated