[CMake] Unable to fetch directory name from path

2009-02-05 Thread Ashutosh Juneja
Hi, I am unable to fetch only directory name from an absolute path in CMakeList.txt file. GET_FILENAME_COMPONENT(c:/path/to/dir dirname NAME) does no produce any output. 1. Is it only for files or not directories? or am I doing any mistake? 2. Is it possible to split a path in an list/array? (

[CMake] Problems globbing directory by FILE(GLOB_RECURSE)

2009-02-04 Thread Ashutosh Juneja
Hi, I want to glob directories from a specified location, but unable to do so. My purpose is to run cmake and generate CTestTestfile.cmake in binary tree having multiple ADD_TEST commands. i.e. I want to extract directories ABC and DEF from an area listed below: /path/to/some/area/ABC

[CMake] Unable to locate test area for running CTest

2009-01-29 Thread Ashutosh Juneja
Hi, I want to do regression testing using CTest after building through cmake. My test area (c:/test/T1 T2 T3…) and build area (c:/build) have these locations. My test requires to 'cd' to test area T1, and then execute perl commands. I do these steps: 1. Run cmake from source tree, having

[CMake] How to integrate Ctest onto CMake build?

2009-01-22 Thread Ashutosh Juneja
Hi, I am new to CMake/CTest infrastructure. I have built a project (c:\build) from source code (c:\src) using cmake on windows. My aim is to integrate CTest onto CMake build by running few regression tests. The testcases are located at c:\tests. c:\test\test01 c:\test\test02 To run a test, i