blob: 6444ed066bb75d5cb2f77a0d424a6a20ae5e2eca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
cmake_minimum_required(VERSION 3.14)
project(calc)
# Add libcalc (rust).
add_subdirectory(libcalc)
# Build calc add_executable.
add_executable(calc calc.c)
target_compile_options(calc PRIVATE -Wall -Wextra)
# Link against rust lib.
target_link_libraries(calc libcalc)
|