[CMake] AStyle or similar code beautifier

2014-01-30 Thread Rob McDonald
All, I'm interested in adding a code beautifier to my project. I'm looking at AStyle, but am open to others. Implementing a FindAStyle.cmake is pretty trivial. Likewise, implementing custom targets is pretty straightforward in the simple case. However, I thought there might be some canonical/i

Re: [CMake] Add support for Metro apps

2014-01-30 Thread Minmin Gong
Here comes a new version of this patch. In this version, ARM are also supported. Modifications include: 1. Determine MSVC ARM compiler. Cmake can determine and test VC's x86-arm compiler correctly, and mark it as cross compiling. This feature is inspired by Martell Malone's patch in http://www.c

[CMake] retrieving and manipulating (Fortran) dependency information

2014-01-30 Thread Zaak Beekman
I noticed that output_required_files is deprecated. Is there a way to determine the dependencies of a Fortran source file that I can then manipulate in a CMakeLists.txt file? Fortran dependency resolution is a pain, and I need to determine dependencies for a custom target. TIA, Zaak -- Powered b

Re: [CMake] Reverse logic

2014-01-30 Thread Matthew Woehlke
On 2014-01-29 19:09, Rob McDonald wrote: I feel like this is a really dumb question, but I've got myself wrapped around the axel I'd like to use a negative conditional on a variable that may or may not be defined... say USE_SYSTEM_FOO So, I'd like to do something like this... IF( NOT ${US

[CMake] include_directories(...) versus set_directory_properties(PROPERTIES INCLUDE_DIRECTORIES ...)

2014-01-30 Thread Marcel Loose
Hi all, Recently I ran into a problem with a medium-large sized project with newer CMakes. At first I didn't know what was going on: a cmake run started to crawl, until it almost came to a standstill and then the OS killed my login session. It turned out that, just before being logged out forcibly

[CMake] Out-of-tree build with multiple executables for eclipse

2014-01-30 Thread Azzurite
Hello, I'm very new to CMake. I'm trying to set up an out-of-source C++ build on Windows with CMake so I can use version control with eclipse (mingw make). My setup should look like this: Root ---> build ---> src ---> test src/ contains my program code and test/ the unit tests. There is a main m