Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8cfc0c3825 | |||
| 102e272b6c | |||
| f272af142b |
@@ -9,9 +9,6 @@ enable_testing()
|
|||||||
add_library(calculator src/calculator.c)
|
add_library(calculator src/calculator.c)
|
||||||
target_include_directories(calculator PUBLIC include)
|
target_include_directories(calculator PUBLIC include)
|
||||||
|
|
||||||
add_executable(main src/calculator.c)
|
|
||||||
target_include_directories(main PUBLIC include)
|
|
||||||
|
|
||||||
add_executable(test_calculator tests/test_calculator.c)
|
add_executable(test_calculator tests/test_calculator.c)
|
||||||
target_link_libraries(test_calculator calculator m)
|
target_link_libraries(test_calculator calculator m)
|
||||||
target_include_directories(test_calculator PRIVATE include)
|
target_include_directories(test_calculator PRIVATE include)
|
||||||
|
|||||||
@@ -18,4 +18,3 @@ double divide(int a, int b) {
|
|||||||
}
|
}
|
||||||
return (double)a / b;
|
return (double)a / b;
|
||||||
}
|
}
|
||||||
EOF
|
|
||||||
|
|||||||
Reference in New Issue
Block a user