build: define CGLM_DEFINE_PRINTS to enable print functions for test results

This commit is contained in:
Recep Aslantas
2020-07-31 12:41:53 +03:00
parent 06016220c0
commit 40d903c2bc
2 changed files with 2 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ checkLDFLAGS = -L./.libs \
checkCFLAGS = $(AM_CFLAGS) \
-std=gnu11 \
-O3 \
-DCGLM_DEFINE_PRINTS \
-I./include
check_PROGRAMS = test/tests

View File

@@ -16,6 +16,7 @@ set(TEST_MAIN tests)
set(TEST_RUNNER_PARAMS "")
add_executable(${TEST_MAIN} ${TESTFILES})
target_compile_definitions(${TEST_MAIN} PRIVATE CGLM_DEFINE_PRINTS=1)
target_link_libraries(${TEST_MAIN} PRIVATE cglm m)
target_include_directories(${TEST_MAIN} PRIVATE