dear all,

I'm trying to use cmake as a super build script for another library build
system.

Using add_custom_command and add_custom_target I have managed to handle
most of the steps so far. My libraries and executable are being built as
requested across platform.

Now I'm trying to import the generated tests. Some of the generated
executables during the build step are self-contained tests that I would
like to run using ctest and send to a dashboard. So far I have hardcoded
the revision of the code i'm fetching, and the corresponding list of tests.
However those tests change pretty often, and I would like to have something
more flexible there.

How could I grep the list of tests (knowing that they all end up with
".isolated" a grep would do), and loop through the resulting list
"add_test"ing them one by one AT CMAKE BUILD TIME, after a previous target
has been built?

I googled around, tried a few things, but couldn't figure out a way to make
it happen.

thanks in advance for all advice.

Alex.

-- 
Alex. Gouaillard, PhD, PhD, MBA
------------------------------------------------------------------------------------
CTO - Temasys Communications, S'pore / Mountain View
President - CoSMo Software, Cambridge, MA
------------------------------------------------------------------------------------
sg.linkedin.com/agouaillard

   -
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to