Add CMake example
This commit is contained in:
7
rust-to-cmake/libdouble/CMakeLists.txt
Normal file
7
rust-to-cmake/libdouble/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
add_library (
|
||||
double
|
||||
STATIC
|
||||
double.c
|
||||
)
|
||||
|
||||
install (TARGETS double DESTINATION .)
|
||||
3
rust-to-cmake/libdouble/double.c
Normal file
3
rust-to-cmake/libdouble/double.c
Normal file
@@ -0,0 +1,3 @@
|
||||
int double_input(int input) {
|
||||
return input * 2;
|
||||
}
|
||||
Reference in New Issue
Block a user