Re: [CMake] Labels on tests defined on another subdirectory

2018-09-19 Thread Marc CHEVRIER
Using command 'get_directory_property(var DIRECTORY ${my_dir} TESTS)' is OK to retrieve tests defined in some sub directory. But, it is useless because command 'set_test_properties()' must be called from the directory where the tests are defined. but you can do: set (MY_LABELS LABEL1) add_subdir

[CMake] source_group for all subdirectories

2018-09-19 Thread tonka3...@gmail.com
Hey, I want to use cmakes source_group with regex. As long as the command is in the same file as my target everything works fine, but I want to set the source_group in my main CMakeLists.txt file, because I have many sub_directories. Is it possible to set a cmake config to pass it down to my s

Re: [CMake] Labels on tests defined on another subdirectory

2018-09-19 Thread Raffi Enficiaud
On 19.09.18 08:25, Marc CHEVRIER wrote: directory property 'TESTS' returns the tests created in the *current* directory only. The main reason to this limitation is the fact that tests created in different directories can have same name. The get_directory_property call is made from the director

Re: [CMake] --config Parameter position relevant?

2018-09-19 Thread Dennis Luehring
Am 19.09.2018 um 13:59 schrieb Eric Noulard: I guess it is because --config is a sub-option of the --build option whose expected syntax is: cmake --build [options] [-- [native-options]] that makes it clear - thx -- Powered by www.kitware.com Please keep messages on-topic and check the CMake

Re: [CMake] --config Parameter position relevant?

2018-09-19 Thread Eric Noulard
Le mer. 19 sept. 2018 à 13:43, Dennis Luehring a écrit : > build environment: > > Win7 x64 > VStudio 2017 Community Edition 15.8.4 (latest) > CMake 3.12.1 (x86) > git 2.19.0 (latest, x64) > Python 2.7.2 (x86) > > directory structure: > > D:/projects/fun/jit_tests/clang_from_src/ >llvm <-- git

[CMake] --config Parameter position relevant?

2018-09-19 Thread Dennis Luehring
build environment: Win7 x64 VStudio 2017 Community Edition 15.8.4 (latest) CMake 3.12.1 (x86) git 2.19.0 (latest, x64) Python 2.7.2 (x86) directory structure: D:/projects/fun/jit_tests/clang_from_src/   llvm <-- git clone https://github.com/llvm-mirror/llvm     tools   clang <-- git clone h