Re: [CMake] Parallel moc for Qt files

2017-07-07 Thread Benjamin Ballet via CMake
I don't know how to parallelize moc with CMake though I previously reduce moc time (sometimes it's very slow) : - by replacing as much #include as possible by forward-declaration - wrapping some #include around #ifndef Q_MOC_RUN ... #endif 2017-07-06 22:00 GMT+02:00 Michael Jackson : > I have a

[CMake] cmake install ends with error code 0xC0000022

2017-02-01 Thread Benjamin Ballet via CMake
Hi, I'm using install(CODE"... to run windeployqt.exe during installation It works fine for a few exe or dll then it fails the installation with error code 0xC022 because of the last execute_process(... If I remove the incriminating dll, it fails with the next one. Any hints ? -- *Benjami

Re: [CMake] ExternalProject_Add : set the location of CMakeLists.txt

2016-10-26 Thread Benjamin Ballet via CMake
gt; : > >> Hello again. >> >> 25.10.2016, 20:31, "Konstantin Podsvirov" : >> > Hello, Benjamin. >> > >> > 25.10.2016, 19:41, "Benjamin Ballet via CMake" : >> >> Hi, >> >> >> >> I'm trying to get GLEW (

Re: [CMake] ExternalProject_Add : set the location of CMakeLists.txt

2016-10-26 Thread Benjamin Ballet via CMake
Ok I'm quiet lucky : There is what I need in CMake 3.7 (SOURCE_SUBDIR) 2016-10-25 19:54 GMT+02:00 Konstantin Podsvirov : > Hello again. > > 25.10.2016, 20:31, "Konstantin Podsvirov" : > > Hello, Benjamin. > > > > 25.10.2016, 19:41, "Benjamin Ballet

[CMake] ExternalProject_Add : set the location of CMakeLists.txt

2016-10-25 Thread Benjamin Ballet via CMake
Hi, I'm trying to get GLEW (https://github.com/nigels-com/glew) with ExternalProject_Add It's buildable with cmake but the CMakeLists.txt is in build/cmake directory. Is there a way to specify the directory of the CMakeLists.txt file ? If I change SOURCE_DIR it will only clone the repo in SOURCE

Re: [CMake] setting clrsupport VS2010

2016-10-19 Thread Benjamin Ballet via CMake
Hi here is all the property I had to set to produce C++/CLI (clr) targets with cmake target_compile_options(${project_name} PRIVATE /clr) target_compile_options(${project_name} PRIVATE /fp:precise) # /fp:strict is incompatible with /clr set_property(TARGET ${project_name} PROPERTY VS

Re: [CMake] Using a pathless library in an imported target.

2016-08-28 Thread Benjamin Ballet via CMake
Create an imported interface instead of a static library. Then you can set either INTERFACE_COMPILE_OPTIONS or INTERFACE_LINK_LIBRARIES properties. 2016-08-27 21:39 GMT+02:00 Yaron Cohen-Tal : > Hi, > > I try to make an imported target out of OpenGL, and I have some > difficulty. Usually "OPENGL_

Re: [CMake] [cmake-developers] Need ideas/opinions on third party library management

2016-08-16 Thread Benjamin Ballet via CMake
Very interesting discussion, we have the same issues here. Florent Castelli, how many third parties libraries do you use ? I think a super build can be a very good solution but I'm wondering how much third party code you have to build. Here we use OpenCV, with, boost, and poco, and other things...

[CMake] cmake-3.5.2-win32-x86.exe : broken download link

2016-07-21 Thread Benjamin Ballet via CMake
Hi On https://cmake.org/download/ It should be cmake-3.5.2-win32-x86.msi I guess -- *Benjamin BALLET* Ingénieur R&D *ACTIVISU* 19, rue Klock - 92110 Clichy *> Standard Tél* : 01 44 69 37 37 *>* www.activisu.com -- Powered by www.kitwa

Re: [CMake] [Visual Studio] Is it possible to specify a different target architecture?

2016-06-28 Thread Benjamin Ballet via CMake
Hi Look at the CMAKE_VS_PLATFORM_TOOLSET variable 2016-06-28 15:51 GMT+02:00 Adam Rankin : > Hello all, > > > > I am wondering if there exist CMake commands/variables to specify for > Visual Studio to have the project f

[CMake] Visual Studio : can I add a references to a cmake generated vcxproj ?

2016-05-19 Thread Benjamin Ballet via CMake
Hi folks Is there a reason not to add a references to a cmake generated project from a classic visual studio project ? Anyone does it on a daily basis ? I'm worrying about the generated ProjectGUID : The guid of the project is stored in the classic visual studio project as well as in the generat

Re: [CMake] issue with target_link_libraries and MSVC

2016-04-13 Thread Benjamin Ballet via CMake
VC flags start with “forward” slashes: / (However, MSVC also accepts > hyphens (-) in my experience.) > > Documentation for /openmp flag: > https://msdn.microsoft.com/library/fw509c3b.aspx > > > > Best regards, > > Miroslav > > > > *From:* CMake [mailto:cmak

Re: [CMake] issue with target_link_libraries and MSVC

2016-04-13 Thread Benjamin Ballet via CMake
ttps://msdn.microsoft.com/library/fw509c3b.aspx > > > > Best regards, > > Miroslav > > > > *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Benjamin > Ballet via CMake > *Sent:* Tuesday, April 12, 2016 5:30 PM > *To:* cmake@cmake.org > *Subject:* [CMake]

[CMake] issue with target_link_libraries and MSVC

2016-04-12 Thread Benjamin Ballet via CMake
I'm trying to add the openmp flag to a target with target_link_libraries. \openmp is interpreted as a file name and visual try to link to \openmp.obj The documentation state that target_link_libraries see an item as a flag if it start with - but MSVC flags start with \ Is there a way to add a lin