Hello! The DownloadProject CMake module <https://crascit.com/2015/07/25/cmake-gtest/> may be of use in your situation. 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. Unfortunately, I don't know, how to resolve this issue. The best idea I have is to use v3.8 for bort test suits.
-- Sent from: http://cmake.3232098.n2.nabble.com/ -- 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