Hi,

Le 6/28/2018 à 7:29 AM, Innokentiy Alaytsev a écrit :
Hello!

The  DownloadProject CMake module
<https://crascit.com/2015/07/25/cmake-gtest/>   may be of use in your
situation.
Already test this idea and is' mostly work. I will take a look again.
Basically, you can add the external project with the
add_subdirectory() function in the main build tree. However, there might be
some problems with two targets with the same name, i.e. CppUTest 3.7 and
CppUTest 3.8 will most likely both create the CppUTest target.
As you guest, 2 CppUTest target is created and CMAKE give up.
Unfortunately, I don't know, how to resolve this issue. The best idea I have
is to use v3.8 for bort test suits.
The thing is that I do not want to have this dependency information in the top level CMakeLists.txt file.

Regards
Jonathan
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake

Reply via email to