Re: [CMake] Order of enable_testing and add_subdirectory

2010-02-01 Thread Mateusz Loskot
Marcel Loose wrote: > On Sun, 2010-01-31 at 01:20 +, Mateusz Loskot wrote: >> Hi, >> >> I have just learned by trial and error that enable_testing() >> macro should be called before a subdirector(y|ies) with tests >> are added, otherwise tests are not configured. >> >> Here is a bit of CMakeLis

Re: [CMake] Order of enable_testing and add_subdirectory

2010-02-01 Thread Marcel Loose
On Sun, 2010-01-31 at 01:20 +, Mateusz Loskot wrote: > Hi, > > I have just learned by trial and error that enable_testing() > macro should be called before a subdirector(y|ies) with tests > are added, otherwise tests are not configured. > > Here is a bit of CMakeLists.txt in root directory of

[CMake] Order of enable_testing and add_subdirectory

2010-01-30 Thread Mateusz Loskot
Hi, I have just learned by trial and error that enable_testing() macro should be called before a subdirector(y|ies) with tests are added, otherwise tests are not configured. Here is a bit of CMakeLists.txt in root directory of my project 1) This option works properly enable_testing() add_subdir