I'm trying to add some tests to a project which is mainly built on
Windows using Visual Studio. The problem I have is how to locate the
binary used to run the test. The path to the binary depends on the
Visual Studio macro "$(ConfigurationName)", so when I run ctest I get:

$ vcbuild RUN_TESTS.vcproj
Build started: Project: RUN_TESTS, Configuration: Debug|Win32
--
-- Performing Post-Build Event...
-- Start processing tests
-- Test project H:/dev/marran/trunk/core/ide/cmakebuild/i686-pc-mswin32
--   1/  2 Testing jkc_jni                       ***Failed
--   2/  2 Testing ide_generic                   Could not find executable 
H:/dev/marran/trunk/core/
ide/../stage/$(ConfigurationName)/common/bin/TestIDE
-- Looked in the following places:
-- H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/TestIDE
-- 
H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/TestIDE.exe
-- 
H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/Debug/TestIDE
-- 
H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/Debug/TestIDE.exe
-- 
Debug/H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/TestIDE
-- 
Debug/H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/TestIDE.exe
-- Unable to find executable: 
H:/dev/marran/trunk/core/ide/../stage/$(ConfigurationName)/common/bin/
TestIDE
-- 0% tests passed, 2 tests failed out of 2
-- The following tests FAILED:
--    1 - jkc_jni (Failed)
--    2 - ide_generic (Not Run)
-- Errors while running CTest
*** Project : error PRJ0019: A tool returned an error code from "Performing 
Post-Build Event..."

I.e. the TestIDE binary can't be found by ctest since ctest doesn't know
about $(ConfigurationName).

Is there a solution to this?

--
/Jesper


_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to