[CMake] About multiple toolchains support in big project

2017-04-28 Thread 刘松
Hi CMake experts, I want to use CMake build system for large projects, which will uses different toolchains. Let’s take one simple example: There are two project, one is using the arm cross toolchain, another one is using the dsp toolchain. cmake_projects/ ├── CMakeLists.txt ├── arm_project

[CMake] Inconsistent parsing of bracket comments in command arguments

2017-04-28 Thread Volo Zyko
Hi, I've encountered the following behavior. Code like 'set(FOO#[[bar]] 1)' is parsed fine by cmake, but for the code 'set(FOO #[[bar]]1)' cmake reports: Syntax Error in cmake code at column 13 Argument not separated from preceding token by whitespace. Is this by design or just an omission?

Re: [CMake] DLL handling under CMake

2017-04-28 Thread Nils Gladitz
On 04/27/2017 10:43 AM, Louis-Paul CORDIER wrote: I added my current code for handling Qt library in my project at the end of this email. (I put a huge part of it if someone want to reuse it). You will notice that this code is handling the case where you are debugging using Visual Studio, to a

[CMake] DLL handling under CMake

2017-04-28 Thread Louis-Paul CORDIER
Hi, I'm using CMake for a while now for cross-platform project. In opposition to Linux, Windows does not have a library system management through a repository system. I would say that 99% of applications that have common libraries between them does not share the runtimes. Each time, the .dll