From 7634dd65ac55a0fe4e7ed69cee7e3957f574a03e Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 21 Dec 2021 21:03:05 -0600 Subject: implement RenatoUtsch's trimmed __FILE__ macro --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f7acc8a..9e4dcb5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,9 @@ project( VERSION 0.1.0 DESCRIPTION "A super-simple single-header C test framework") +string(LENGTH "${CMAKE_SOURCE_DIR}/" SOURCE_PATH_SIZE) +add_definitions("-DSOURCE_PATH_SIZE=${SOURCE_PATH_SIZE}") + include_directories(${CMAKE_SOURCE_DIR}) set (TEST_SRC ${CMAKE_SOURCE_DIR}/tests) add_executable(lily-metatest -- cgit v1.2.1