mirror of
https://github.com/recp/cglm.git
synced 2026-02-17 03:39:05 +00:00
build: define CGLM_DEFINE_PRINTS to enable print functions for test results
This commit is contained in:
@@ -23,6 +23,7 @@ checkLDFLAGS = -L./.libs \
|
|||||||
checkCFLAGS = $(AM_CFLAGS) \
|
checkCFLAGS = $(AM_CFLAGS) \
|
||||||
-std=gnu11 \
|
-std=gnu11 \
|
||||||
-O3 \
|
-O3 \
|
||||||
|
-DCGLM_DEFINE_PRINTS \
|
||||||
-I./include
|
-I./include
|
||||||
|
|
||||||
check_PROGRAMS = test/tests
|
check_PROGRAMS = test/tests
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ set(TEST_MAIN tests)
|
|||||||
set(TEST_RUNNER_PARAMS "")
|
set(TEST_RUNNER_PARAMS "")
|
||||||
|
|
||||||
add_executable(${TEST_MAIN} ${TESTFILES})
|
add_executable(${TEST_MAIN} ${TESTFILES})
|
||||||
|
target_compile_definitions(${TEST_MAIN} PRIVATE CGLM_DEFINE_PRINTS=1)
|
||||||
|
|
||||||
target_link_libraries(${TEST_MAIN} PRIVATE cglm m)
|
target_link_libraries(${TEST_MAIN} PRIVATE cglm m)
|
||||||
target_include_directories(${TEST_MAIN} PRIVATE
|
target_include_directories(${TEST_MAIN} PRIVATE
|
||||||
|
|||||||
Reference in New Issue
Block a user