Re: [CMake] problem: No test configuration file found!

2012-06-20 Thread David Cole
Put the "include(CTest)" line in your top level CMakeLists.txt file. Do a full clean re-configure (remove the "build" directory, make a new empty "build" directory and run CMake again). If it still happens after that, we need more details about your project. You should be able to build "Experime

Re: [CMake] problem: No test configuration file found!

2012-06-20 Thread Robert Ramey
I received the adive: include(CTest) instead of: enable_testing() Including CTest.cmake will automatically enable_testing(), but it also configures the "test configuration file" it's complaining about... and was rewarded with a working VS 9 project. The test_subtract project built - as it did b

Re: [CMake] problem: No test configuration file found!

2012-06-19 Thread m.hergarden
I think you could put the enable_testing() and add_test() statements in a file called CMakeTests.txt in your subdirectory and include that in your toplevel cmakelists.txt. That works for me anyway. I'm not sure if this is the official way it is supposed to be done though. Regards, Micha On 06

Re: [CMake] problem: No test configuration file found!

2012-06-19 Thread David Cole
Do: include(CTest) instead of: enable_testing() Including CTest.cmake will automatically enable_testing(), but it also configures the "test configuration file" it's complaining about... HTH, David On Tue, Jun 19, 2012 at 5:19 PM, Robert Ramey wrote: > I'm working through my first CMake/CT

[CMake] problem: No test configuration file found!

2012-06-19 Thread Robert Ramey
I'm working through my first CMake/CTest project. My directory structure looks like safe_numerics/ CMakeLists.txt // #1 build/ // out of source build directory include/ examples/ doc/ tests/ CMakeLists.txt // #2 #1 looks like cmake_minimum_required(VERSION 2.6) p