On Thu, Apr 22, 2010 at 10:23, naryniecki <[email protected]> wrote:
> Hi,
>
> I know there is such possibility, but I have also few directories with
> which are compiled and linked in "normal" way. In such situation I
> would have to create custom target for this big directory. But I had
> problem how to create target which say: compile all *.cpp files from
> directory to .o files.  I tried to use CMAKE_C_COMPILE_OBJECT somehow
> or CMAKE_C_FLAGS but it didn't work. I had "\" signs in CMAKE_C_FLAGS
> and couldn't remove. I wrote to this list some time ago but no answer.

I'm not quite sure I understand what you are trying to do.  AFAIU your
goal is to do the following:

 - compile every C++ file in the directory
 - link the resulting object files into a library

Is that correct?

/M

-- 
Magnus Therning                        (OpenPGP: 0xAB4DFBA4)
magnus@therning.org          Jabber: magnus@therning.org
http://therning.org/magnus         identi.ca|twitter: magthe
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to