What is it that you are trying to do _exactly_? Are you trying to check for a symbol or function or something like that? Are you trying to run a unit test that tests your code? Or are you trying to do something else?
------ Mike Jackson www.bluequartz.net On Thu, Mar 19, 2009 at 6:22 AM, Marcel Loose <lo...@astron.nl> wrote: > Hi all, > > I've been searching for a way to implement "make check" the GNU > Autotools way. That is: tests are not compiled and linked as part of the > "all" target, but as part of the "check" target. > > I followed section 10.5 "Using CTest to Drive Complex Tests" of the book > "Mastering CMake" and I looked at the Tests directory of the CMake > distribution. From that I created my little toy project "Hello". > > Now the problem is: it doesn't work. For details, see below. > > It appears that ctest is running cmake (again), but it doesn't read the > CMakeLists.txt files (should it?). Hence, I get all kind of warnings, > like "No cmake_minimum_required command is present." And then, ctest > fails, because it cannot find the executable "t_hello", which should > have been built by ctest. At least, it is my understanding that it > should have been built, since that was the purpose of using this complex > add_test() statement. > > Could someone explain what I'm doing wrong? > Many thanks in advance. > > Best regards, > Marcel Loose. > _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake