Re: [CMake] Error in running tests

2013-04-19 Thread Lloyd
Thanks again. Setting the WORKING_DIRECTORY worked for me... On Mon, Apr 15, 2013 at 5:17 PM, Petr Kmoch wrote: > It's good the second signature works; I believe there's hardly ever use > for using the first one, anyway. > > As for the DLLs, would it help if you set the WORKING_DIRECTORY parame

Re: [CMake] Error in running tests

2013-04-15 Thread Petr Kmoch
It's good the second signature works; I believe there's hardly ever use for using the first one, anyway. As for the DLLs, would it help if you set the WORKING_DIRECTORY parameter in add_test(), and/or set the PATH env. variable using the test's property ENVIRONMENT? On Unix systems, the path issu

Re: [CMake] Error in running tests

2013-04-15 Thread Lloyd
On Mon, Apr 15, 2013 at 12:10 PM, Petr Kmoch wrote: > The errors VS spews out aren't really useful. However, if you go to > ${CMAKE_BINARY_DIR}/Testing/Temporary, there are log files. LastTest.log > should tell you a bit more. > > Can you also try/report on my second question? (2. Does it work if

Re: [CMake] Error in running tests

2013-04-14 Thread Petr Kmoch
The errors VS spews out aren't really useful. However, if you go to ${CMAKE_BINARY_DIR}/Testing/Temporary, there are log files. LastTest.log should tell you a bit more. Can you also try/report on my second question? (2. Does it work if you use the enhanced signature of add_test? I mean 'add_test(N

Re: [CMake] Error in running tests

2013-04-14 Thread Lloyd
On Fri, Apr 12, 2013 at 5:00 PM, Lloyd wrote: > of course... This is the source of my test cmake file > > #Cmake file of Tests > cmake_minimum_required (VERSION 2.6) > > SET(TST_SRC test_rev.cpp test_runner.cpp) > > FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework) > > INCLUDE_DIRECTORI

Re: [CMake] Error in running tests

2013-04-12 Thread Lloyd
of course... This is the source of my test cmake file #Cmake file of Tests cmake_minimum_required (VERSION 2.6) SET(TST_SRC test_rev.cpp test_runner.cpp) FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SO

Re: [CMake] Error in running tests

2013-04-12 Thread Petr Kmoch
1. Can you post tests/CMakeLists.txt (or at least the parts relevant to creating test_rev)? 2. Does it work if you use the enhanced signature of add_test? I mean 'add_test(NAME Test COMMAND test_rev)' Petr On Fri, Apr 12, 2013 at 1:18 PM, Lloyd wrote: > Yes I built the test and it is in > > E

Re: [CMake] Error in running tests

2013-04-12 Thread Lloyd
Yes I built the test and it is in E:\CMakeDemo\BuildDir\tests\Debug\test_rev.exe I don't know the right way to locate this test executable for cmake Thanks, Lloyd On Fri, Apr 12, 2013 at 4:42 PM, Petr Kmoch wrote: > Hi Lloyd. > > Do you actually have a target (executable) named "test_rev"?

Re: [CMake] Error in running tests

2013-04-12 Thread Petr Kmoch
Hi Lloyd. Do you actually have a target (executable) named "test_rev"? And have you built it before running RUN_TESTS? RUN_TEST (or its Makefile equivalent 'make test') doesn't automatically build the test executables before running them. Petr On Fri, Apr 12, 2013 at 1:08 PM, Lloyd wrote: > H

[CMake] Error in running tests

2013-04-12 Thread Lloyd
Hi, I was successful in creating and compiling a simple project C++/Visual studio using cmake. I have also included one unit test project. All these projects builds successfully. The test project source and main project source resides in the root directory of the project. When I try to run "RUN_TE