First Commit

This commit is contained in:
Mike Nolan 2023-09-02 13:32:38 -05:00
parent ee6e646f74
commit d718c159c3
6 changed files with 24 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
build

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "deps/cmake-library"]
path = deps/cmake-library
url = https://gitea.site.tesses.net/tesses50/cmake-library.git

7
CMakeLists.txt Normal file
View File

@ -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)

View File

@ -0,0 +1,2 @@
# cmake program template
## Please edit CMakeLists.txt

1
deps/cmake-library vendored Submodule

@ -0,0 +1 @@
Subproject commit de1dc0dfe6e9c03f483353df61809aaec6ed7639

10
src/main.c Normal file
View File

@ -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;
}