Skip to content

Commit e1bbbb2

Browse files
committed
up
1 parent 7699e35 commit e1bbbb2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ option(BUILD_TESTS "Build tests" OFF)
6262

6363
if(BUILD_TESTS)
6464
add_executable(dmath_test tests/main.c)
65+
target_include_directories(dmath_test PRIVATE include/public)
6566
target_link_libraries(dmath_test dmath)
6667
endif()

tests/main.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
#include <stdio.h>
33

44
int main(){
5+
#ifndef _DMATH_H
6+
abort();
7+
#endif
8+
59
double x = log(10);
610

711
// write to output.txt

0 commit comments

Comments
 (0)