[CMake] Import library for executables?

2010-09-01 Thread Hariharan Iyer
Hello folks, I'm building an executable called foo.exe (project name foo) and a library called foo.lib (project name libfoo) that the executable depends on. I have an ImportLibrary line for foo.exe which looks like this: ImportLibrary="\lib\Debug\foo.lib" and an OutputFile line for foo.lib t

Re: [CMake] add_custom_target problem

2010-06-09 Thread Hariharan Iyer
On Wednesday 09 June 2010 09:35 PM, Michael Wild wrote: On 9. Jun, 2010, at 17:47 , Hariharan Iyer wrote: This may not be only because of using add_custom_target, but I have the following problem. I have a custom target that depends on a generated file, as: add_custom_target(foo DEPENDS bar

[CMake] add_custom_target problem

2010-06-09 Thread Hariharan Iyer
This may not be only because of using add_custom_target, but I have the following problem. I have a custom target that depends on a generated file, as: add_custom_target(foo DEPENDS bar) where "bar" is a generated file, generated using add_custom_command. If I build the "foo" target by itself