Re: [CMake] add_test command in a sub-directory

2009-10-02 Thread romain . jacquet . dev
Selon Nathaniel Waisbrot (Cont ARL/CISD) nathaniel.waisb...@arl.army.mil: Try moving the ENABLE_TESTING() call to the top-level CMakeLists.txt, before any calls to add_subdirectory(). Add_test() can stay where it is. Thanks it works perfectly. But the behavior of ENABLE_TESTING() is

[CMake] add_test command in a sub-directory

2009-10-01 Thread romain . jacquet . dev
Hi everybody, I have found a strange behavior with CTest. I had a very simple projet with one test, which works perfectly. I have changed the architecture of my project. I have now a subdirectory. Now: CMakeLists.txt -myDir/ -myDir/*cpp -myDir/*h -myDir/CMakeLists.txt The idea behind is the

Re: [CMake] add_test command in a sub-directory

2009-10-01 Thread Nathaniel Waisbrot (Cont ARL/CISD)
Try moving the ENABLE_TESTING() call to the top-level CMakeLists.txt, before any calls to add_subdirectory(). Add_test() can stay where it is. -N On Thu, 2009-10-01 at 18:30 +0200, romain.jacquet@free.fr wrote: Hi everybody, I have found a strange behavior with CTest. I had a very