Eric Clark wrote:
> Hello,
> 
> First off, you cannot call both add_executable and add_library in the same
> CMakeLists file. Here is what I can say about your other questions:

Of course you can.

> 1.       All commands that require a target have to come after you have
> created the target via add_executable or add_library. This is simply
> because you need to have a target before you can adds things to it.
 
That is indeed correct.

Eike

-- 

Attachment: signature.asc
Description: This is a digitally signed message part.

--

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