First Commit
This commit is contained in:
parent
ee6e646f74
commit
d718c159c3
|
@ -0,0 +1 @@
|
|||
build
|
|
@ -0,0 +1,3 @@
|
|||
[submodule "deps/cmake-library"]
|
||||
path = deps/cmake-library
|
||||
url = https://gitea.site.tesses.net/tesses50/cmake-library.git
|
|
@ -0,0 +1,7 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(MyNewProgram VERSION 1.0
|
||||
DESCRIPTION "CHOOSE YOUR DESCRIPTION")
|
||||
add_subdirectory(deps/cmake-library)
|
||||
add_executable(${PROJECT_NAME} src/main.c)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC MyNewLibrary)
|
|
@ -0,0 +1 @@
|
|||
Subproject commit de1dc0dfe6e9c03f483353df61809aaec6ed7639
|
|
@ -0,0 +1,10 @@
|
|||
#include <add.h>
|
||||
#include <stdio.h>
|
||||
int main(int argc,char** argv)
|
||||
{
|
||||
int a=37;
|
||||
int b=5;
|
||||
int out = add(a,b);
|
||||
printf("%i + %i = %i\n",a,b,out);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue