adding in basic helloworld

This commit is contained in:
talksik
2023-09-11 17:22:27 -07:00
commit e009fbaa3f
5 changed files with 71 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
CompileFlags:
Add: []
+35
View File
@@ -0,0 +1,35 @@
# Prerequisites
*.d
# Compiled Object files
*.slo
*.lo
*.o
*.obj
# Precompiled Headers
*.gch
*.pch
# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# Fortran module files
*.mod
*.smod
# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Executables
*.exe
*.out
*.app
build/
+16
View File
@@ -0,0 +1,16 @@
cmake_minimum_required(VERSION 3.15)
project(HelloWorld)
# gstreamer-1.0
find_package(PkgConfig REQUIRED)
set(CMAKE_CXX_STANDARD 14)
set (source_dir "./src")
file (GLOB source_files "${source_dir}/*.cpp")
file (GLOB header_files "${source_dir}/*.h")
add_executable(HelloWorld ${source_files})
target_include_directories(HelloWorld PUBLIC ${source_dir})
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
rm -rf build/
mkdir -p build/
cd build
# Build the project
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ..
make
./HelloWorld
+5
View File
@@ -0,0 +1,5 @@
#include <iostream>
int main() {
std::cout << "Hello World!" << std::endl;
}