Richard,

Richard Wackerbarth schrieb:
> Johannes,
>
> Is there any compelling reason to place the cmake "control files" in a
> directory under the root?
>
> Foo/
>    CMakeLists.txt
>    CTestConfig.cmake
>    include
>       Foo.h
>    src
>       Foo.cpp
>       FooTest.cpp
>
> is a more conventional structure
>

its actually for historical reasons. Initially, the structure was like
Foo/
   include
      Foo.h
    gcc
       Makefile
   src
      Foo.cpp
      FooTest.cpp
    vc70
       Foo.vcproj
    vc80
       Foo.vcproj

So creation of a cmake folder for CMakeLists.txt might have resulted
from habit. However, since then, many new components have been created
and I would actually want to avoid to adapt the directory structure and
CMakeLists of all projects. So is it mandatory to put the CMakeLists.txt
in the project root directory or is it only considered "best practice".
Nevertheless, the question remains, why CTest accepts "Foo/" as source
directory but not its equivalent "Foo/cmake/..".

Regards
Johannes
_______________________________________________
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