[CMake] Failing to set VS_DEBUGGER_* on target added via add_custom_target.

2018-12-04 Thread Albrecht Fritzsche
Hi, I - being new to CMake - somehow fail to set VS_DEBUGGER_* property values on a project added via add_custom_target(). The settings of those property values seem to be lost and not written to any .vcxproj file. Doing the same to a target added via add_executable() works on the other hand

[CMake] Imported targets fail to be added to the FOLDER property.

2018-12-05 Thread Albrecht Fritzsche
Hi, is there a way to add an imported target to the IDE similar to the way eg executable targets are added? In the following code the last line seems to have no effect, ie when opening the generated Visual Studio solution neither the helloWorld.cpp nor the folder "tests" is shown

[CMake] Executing custom command behavior.

2019-11-22 Thread Albrecht Fritzsche
Hi, what exactly is the difference between the following both variants of adding an executable and sources to a project? I probably should add that for both versions the build happens via a custom command added via add_custom_command( TARGET ${cmake_target} POST_BUILD ... ) Hence I set