The "convention" is to use *.cmake but any text file will do. The nice
thing about using .cmake as the extension is that lots of editors will
pick up on this fact and then use some sort of syntax coloring for
your cmake file.

The thing to note is that using the include() command is just like
substituting the code in the included file right into the current
cmake file where you wrote the "include()" command.


Mike Jackson

On Mon, Aug 10, 2009 at 7:43 PM, ML<mailingli...@mailnewsrss.com> wrote:
> Hi All,
>
> In my CMakeList..txt, I want to do some including of other files that will
> do some setting or options, etc, etc/
>
> Something like:
>
> if (APPLE)
>
>  include(apple.txt)
>
> endif (APPLE)
>
> Can I do this? is there a proper naming convention I should use?
>
> -Jason
_______________________________________________
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