[CMake] emulating `make check' behaviour

2006-08-15 Thread Scott Amort
Hello, I am attempting to emulate the autotools `make check' behaviour in my CMake project. I currently have a testing framework setup and working using ENABLE_TESTING() and CTest, however, it has two drawbacks (from my perspective, anyways ;-) ). 1) Testing executables are compiled at the same

Re: [CMake] emulating `make check' behaviour

2006-08-15 Thread William A. Hoffman
At 01:09 PM 8/15/2006, Scott Amort wrote: >Hello, > >I am attempting to emulate the autotools `make check' behaviour in my >CMake project. I currently have a testing framework setup and working >using ENABLE_TESTING() and CTest, however, it has two drawbacks (from my >perspective, anyways ;-) ). >

Re: [CMake] emulating `make check' behaviour

2006-08-15 Thread Asmodehn Shade
Hello, In my case I am using a simple variable BUILD_TESTS in the CMake build to generate or not the tests targets. after that : > ccmake > make > ctest There is a problem though, but not that important for me : I need to rerun ccmake to change the value for the BUILD_TESTS variable. But I don

Re: [CMake] emulating `make check' behaviour

2006-08-15 Thread Scott Amort
Hi Bill, On Tue, 2006-08-15 at 14:26 -0400, William A. Hoffman wrote: > I still think that --build-and-test is your best bet. > Look here for examples: CMake/Source/CMakeLists.txt > > It basically, will run cmake, and run the build command at the time > the test is run. So, the tests are not p