[CMake] Always build a source file

2015-05-21 Thread Gabriele Greco
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/

Re: [CMake] CMake & win32 rc files

2011-05-03 Thread Gabriele Greco
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

Re: [CMake] CMake & win32 rc files

2011-05-03 Thread Gabriele Greco
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

[CMake] CMake & win32 rc files

2011-05-03 Thread Gabriele Greco
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 -

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-14 Thread Gabriele Greco
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

Re: [CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Gabriele Greco
> > 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

[CMake] Fwd: Adding custom directories to PATH enviroment

2011-04-13 Thread Gabriele Greco
> 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

[CMake] Adding custom directories to PATH enviroment

2011-04-13 Thread Gabriele Greco
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