# add\_test in CTestTestfile.cmake to contain relative paths.

**URL:** <https://discourse.cmake.org/t/add-test-in-ctesttestfile-cmake-to-contain-relative-paths/1340>\
**Category:** Usage\
**Created:** [June 7, 2020, 8:14am UTC](https://discourse.cmake.org/t/add-test-in-ctesttestfile-cmake-to-contain-relative-paths/1340 "2020-06-07T08:14:54Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![McMartin](https://discourse.cmake.org/user_avatar/discourse.cmake.org/mcmartin/32/150_2.png) [@McMartin](https://discourse.cmake.org/u/McMartin)\
**Post date:** [June 13, 2020, 9:42am UTC](https://discourse.cmake.org/t/add-test-in-ctesttestfile-cmake-to-contain-relative-paths/1340/18 "2020-06-13T09:42:12Z")

</div>

> [@ben.boeckel](#):
>
> Though this really feels like a new question rather than something about CTestTestfile anymore.

@Grant_Anderson has been asking the same question in several threads:

- the first thread: [MACRO\_UTILS\_INC\_FOLDER Location?](https://discourse.cmake.org/t/macro-utils-inc-folder-location/1291) (which contains the necessary details to understand what they are talking about)
- [Where are Exported Global Variables?](https://discourse.cmake.org/t/where-are-exported-global-variables/1299), which nobody replied to because it doesn’t contain enough information
- the current thread: [add\_test in CTestTestfile.cmake to contain relative paths. - #6 by Grant\_Anderson](https://discourse.cmake.org/t/add-test-in-ctesttestfile-cmake-to-contain-relative-paths/1340/6)
- [Can I create a global variable to use for future projects? - #6 by Grant\_Anderson](https://discourse.cmake.org/t/can-i-create-a-global-variable-to-use-for-future-projects/1359/6), another thread where they attempted to get an answer to their question because the original post was on a similar topic
- and the most recent one: [CMake Generator Error for Unix Makefiles - Would like a Solution.](https://discourse.cmake.org/t/cmake-generator-error-for-unix-makefiles-would-like-a-solution/1385)

Let’s continue this discussion in [MACRO\_UTILS\_INC\_FOLDER Location?](https://discourse.cmake.org/t/macro-utils-inc-folder-location/1291) or [CMake Generator Error for Unix Makefiles - Would like a Solution.](https://discourse.cmake.org/t/cmake-generator-error-for-unix-makefiles-would-like-a-solution/1385) please.

---

_[View the full topic](https://discourse.cmake.org/t/add-test-in-ctesttestfile-cmake-to-contain-relative-paths/1340)._
