Re: [CMake] test depending on code compilation

2018-01-10 Thread Franck Houssen
OK, so I guess there is no way to do that like with autotools... - Mail original - > De: "Franck Houssen" > À: "CMake Mail List" > Envoyé: Mercredi 10 Janvier 2018 12:22:39 > Objet: Re: [CMake] test depending on code compilation > I tried to

[Cmake-commits] CMake branch, master, updated. v3.10.1-758-gb2369ad

2018-01-10 Thread Kitware Robot
VERSION_MINOR 10) -set(CMake_VERSION_PATCH 20180110) +set(CMake_VERSION_PATCH 20180111) #set(CMake_VERSION_RC 1) --- Summary of changes: Source/CMakeVersion.cmake |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/

[CMake] Creating a relocatable ProjectConfig.cmake when build uses absolute paths

2018-01-10 Thread Lucas Soltic
Hello, I'm trying to create a relocatable package configuration file but I'm having a hard time with absolute paths that are used during the build. Note that I use CMake 3.10.0. First of all for the include path I'm using this: target_include_directories(MyStaticTarget PUBLIC

[Cmake-commits] CMake branch, master, updated. v3.10.1-757-gddc4f9a

2018-01-10 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via ddc4f9a3c05fa24240fde1ba6c0ab28b7d2e91ea (commit) via

[Cmake-commits] CMake branch, release, updated. v3.10.1-8-g0cfcea3

2018-01-10 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, release has been updated via 0cfcea334b305d47f291f776be422b9d9362d019 (commit) via

[Cmake-commits] CMake branch, master, updated. v3.10.1-751-g1be2297

2018-01-10 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "CMake". The branch, master has been updated via 1be22978e0ec3766c457216af348c8dca4d7cca2 (commit) via

[CMake] Is a there a mean to check that all target are installed?

2018-01-10 Thread Eric Noulard
Is there a way to programmatically check whether all (or some) CMake targets are installed? I want to be able to check that all defined targets of a particular project (at least libraries or executable) are installed. I can recursively retrieve all targets using

Re: [CMake] CMake support for MYS2

2018-01-10 Thread Mojca Miklavec
On 10 January 2018 at 11:56, Konstantin Tokarev wrote: > 10.01.2018, 11:40, "Mojca Miklavec" : >> On 8 January 2018 at 17:38, Konstantin Tokarev wrote: >>> 08.01.2018, 14:35, "Mojca Miklavec": Dear CMake developers, I installed

Re: [CMake] test depending on code compilation

2018-01-10 Thread Franck Houssen
I tried to reduce the example: >> ls CMakeLists.txt main.cpp mytest.cpp mytest.sh >> more * :: CMakeLists.txt :: cmake_minimum_required(VERSION 3.7) enable_language(CXX) project(main) add_executable(main main.cpp) add_executable(mytestcpp mytest.cpp)

Re: [CMake] CMake support for MYS2

2018-01-10 Thread Konstantin Tokarev
10.01.2018, 11:40, "Mojca Miklavec" : > On 8 January 2018 at 17:38, Konstantin Tokarev wrote: >>  08.01.2018, 14:35, "Mojca Miklavec": >>>  Dear CMake developers, >>> >>>  I installed msys2 from http://www.msys2.org/ and (after updating etc) >>>  installed cmake

[CMake] test depending on code compilation

2018-01-10 Thread Franck Houssen
I need to design a test (= a bash script) such that : 1) run a dedicated executable for the test (to be compiled) 2) diff the run output with a reference log file The test is created with : add_test(mytest ./mytest.sh). The bash script would look like: >> more mytest.sh /path/to/mytestexe >

Re: [CMake] CMake support for MYS2

2018-01-10 Thread Mojca Miklavec
On 8 January 2018 at 17:38, Konstantin Tokarev wrote: > 08.01.2018, 14:35, "Mojca Miklavec": >> Dear CMake developers, >> >> I installed msys2 from http://www.msys2.org/ and (after updating etc) >> installed cmake via >> pacman -S cmake > > You should install mingw-w64-x86_64-cmake (or i686).