summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2021-12-21 21:03:05 -0600
committersanine <sanine.not@pm.me>2021-12-21 21:03:05 -0600
commit7634dd65ac55a0fe4e7ed69cee7e3957f574a03e (patch)
tree3c080131ccc0837af240f609e3d6b07284881740 /CMakeLists.txt
parent1e3ca08048542a29d04ecc2c1dbc0e5ba8421c27 (diff)
implement RenatoUtsch's trimmed __FILE__ macro
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
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