Re: [CMake] empty list evaluates to false?

2016-02-29 Thread Stuermer, Michael SP/HZA-ZSEP
You can check for existence of a variable and you can invert the result of the evaluation: if(DEFINED ) # called if variable exists, never mind if it's empty or not endif() if(NOT DEFINED ) # called if variable is not defined endif() if(NOT ) # called if variable is empt

Re: [CMake] Custom languages supported by all generators?

2016-05-19 Thread Stuermer, Michael SP/HZA-ZSEP
Hi Niklas, native support for C# is not available in CMake. There is some work in progress, but it's not yet integrated: https://github.com/micst/CMake Unfortunately I haven't had the time yet to adapt the topic to the new formatting style, so it doesn't merge well with the current Kitware mas

Re: [CMake] Use GLOB to generate filelist for install package

2016-08-11 Thread Stuermer, Michael SP/HZA-ZSEP
> -Original Message- > From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Patrik > Lehmann > Sent: Thursday, August 11, 2016 11:04 AM > To: cmake@cmake.org > Subject: [CMake] Use GLOB to generate filelist for install package > > Hello, > > I try to use GLOB to collect the files f

Re: [CMake] [cmake-developers] CPack [WiX] Customizations of individual features/components

2016-09-30 Thread Stuermer, Michael SP/HZA-ZSEP
Hello Roman, directories are added automatically to the directories.wxs file if you use the install() command in cmake and set the DESTINATION to some subfolder: install(FILES DESTINATION "my/sufolder/path") To add completely new directories I'd suggest to use CPACK_WIX_EXTRA_SOURCES

Re: [CMake] Cmake

2016-12-21 Thread Stuermer, Michael SP/HZA-ZSEP
Hello, To add your mentioned libraries to the executable you have to link against them. For this the cmake command target_link_libraries() is used: https://cmake.org/cmake/help/v3.7/command/target_link_libraries.html In your case the cmake code should look similar to this: target_link_librari

Re: [CMake] Tracing ctest crash on windows

2017-01-09 Thread Stuermer, Michael SP/HZA-ZSEP
Hallo Aaron, if you’d like to have the full luxury of visual studio with test explorer and running/debugging tests directly as you can do it with other .NET based tests etc. you can try these extensions: - child process debugging power tools (https://marketplace.visualstudio.com/item

Re: [CMake] CMake 3.8 release date

2017-01-23 Thread Stuermer, Michael SP/HZA-ZSEP
Hello Nikita, Brad mentioned a feature freeze for version 3.8 at the end of january. Looking at the source history for version 3.7, it can take some time until the final release is done: 3.10.2016: (candidate 1) 19.10.2016: (candidate 2) 4.11.2016: (candidate 3) 11.11.2016: (final release) You

Re: [CMake] IMPORTED DLL-only Target on MSVC

2018-04-02 Thread Stuermer, Michael SP/HZA-ZSEP
> -Ursprüngliche Nachricht- > Von: CMake [mailto:cmake-boun...@cmake.org] Im Auftrag von Marek > Vojtko (Firaxis) > Gesendet: Dienstag, 3. April 2018 00:49 > An: cmake@cmake.org > Betreff: [CMake] IMPORTED DLL-only Target on MSVC > > Hi, > > Is it not possible to wrap an external DLL-only

Re: [CMake] IMPORTED DLL-only Target on MSVC

2018-04-03 Thread Stuermer, Michael SP/HZA-ZSEP
> -Ursprüngliche Nachricht- > Von: CMake [mailto:cmake-boun...@cmake.org] Im Auftrag von Marek > Vojtko (Firaxis) > Gesendet: Dienstag, 3. April 2018 23:24 > An: cmake@cmake.org > Betreff: Re: [CMake] IMPORTED DLL-only Target on MSVC > > > > Is it not possible to wrap an external DLL-only

[CMake] C# support?

2015-06-26 Thread Stuermer, Michael SP/HZA-ZSEP
Hi and sorry for cross-posting this on both lists, I checked the mailing list history about the C#/.NET support topic and realized that the interest in C# support seems to have declined a bit. I am right now in the need of good C# support and adding external project files is not that much of an

Re: [CMake] How to find libraries with custom folder structure

2015-07-01 Thread Stuermer, Michael SP/HZA-ZSEP
Did you add the directory where your find script is in to the CMAKE_MODULE_PATH? To verify your script is called, just add a "message("executing my module")" or so on top of your script, this always works very well for me when I'm not sure. See here for more info about the CMAKE_MODULE_PATH: ht

Re: [CMake] warn if features used that require >cmake-x.y

2015-07-01 Thread Stuermer, Michael SP/HZA-ZSEP
Have a look at cmake_minimum_required() and cmake_policy(). I think with these both it should be possible to verify you are using a cmake version that provides all features which are required by your project. See here: http://www.cmake.org/cmake/help/v3.3/command/cmake_minimum_required.html?#co

[CMake] Visual Studio variable in include_directories path?

2015-11-10 Thread Stuermer, Michael SP/HZA-ZSEP
I would like to add a Visual Studio variable such as $(VCInstallDir) to the include directories of a target. include_directories() obviously does not work, as cmake thinks the path is relative and the project path is prepended to my initial value. Any hints how I can do this? PS: the same with

[CMake] avoid permanent rebuild of custom_target

2015-11-25 Thread Stuermer, Michael SP/HZA-ZSEP
How can I avoid a custom target to be rebuild everytime I build my solution? I added my target like this: add_custom_target(CopyNugetPackages DEPENDS ${depends_list} COMMENT " copying nuget packages " VERBATIM ) set_target_properties(CopyNugetPackages PROPERTIES

[CMake] CTest integration in Visual Studio TestExplorer

2016-01-22 Thread Stuermer, Michael SP/HZA-ZSEP
Hello everyone, picking up the line from Tobias from around a year ago I changed a few things in the ctest unittest adapter. It now works for both Visual Studio 2013 and 2015. 2012 is supported in general but I didn't try it (means: I can install it). Merging and pull request for original versi

[CMake] Setting target property FOLDER on target ALL_BUILD

2016-01-29 Thread Stuermer, Michael SP/HZA-ZSEP
I would like to move the ALL_BUILD target tot he "CMakePredefinedTargets", however this seems not be possible straight away. At least even at the very end of the very last CMakeLists.txt I still cannot call set_target_properties(ALL_BUILD PROPERTIES FOLDER " CMakePredefinedTargets ") wi

Re: [CMake] Setting target property FOLDER on target ALL_BUILD

2016-01-29 Thread Stuermer, Michael SP/HZA-ZSEP
e I'd submit a patch for this. best regards, Michael From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Stuermer, Michael SP/HZA-ZSEP Sent: Friday, January 29, 2016 3:43 PM To: cmake@cmake.org Subject: [CMake] Setting target property FOLDER on target ALL_BUILD I would like to move the ALL

Re: [CMake] CTest integration in Visual Studio TestExplorer

2016-02-04 Thread Stuermer, Michael SP/HZA-ZSEP
es, there is no checking for platform or bitness done. Cheers, Máté Feladó: Stuermer, Michael SP/HZA-ZSEP<mailto:michael.stuer...@schaeffler.com> Elküldve: 2016. január 22., péntek 12:37 Címzett: cmake@cmake.org<mailto:cmake@cmake.org> Tárgy: [CMake] CTest integration in Visua

Re: [CMake] CTest integration in Visual Studio TestExplorer

2016-02-04 Thread Stuermer, Michael SP/HZA-ZSEP
: Stuermer, Michael SP/HZA-ZSEP<mailto:michael.stuer...@schaeffler.com> Feladva: ‎2016.‎02.‎04. 16:27 Címzett: Nagy-Egri Máté Ferenc<mailto:csiga.b...@aol.com>; cmake@cmake.org<mailto:cmake@cmake.org> Tárgy: RE: CTest integration in Visual Studio TestExplorer Hi Máté, thanks for tr