polysquare / cmake-unit

A unit testing framework for CMake
MIT License
36 stars 5 forks source link

Add CMAKE_UNIT_INVOKING_BINARY_DIR variable. #85

Closed smspillaz closed 9 years ago

smspillaz commented 9 years ago

This variable, available during the tests, specifies the binary directory during the time cmake was invoked in the toplevel CMakeLists.txt file, i.e, during the PRECONFIGURE phase. It is useful if the preconfigure phase may generate a file that is used repeatedly across tests.