aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-06 00:59:56 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-06 00:59:56 +0100
commitff6213c0f2ac184686c169fbc308178023525092 (patch)
tree62e16f45c79969ae1da0517999639bc8f8f98dbb
parenta91a10bced3fe37b4a344682df96b23f74c03f5b (diff)
downloadmdhtml-ff6213c0f2ac184686c169fbc308178023525092.tar.gz
mdhtml-ff6213c0f2ac184686c169fbc308178023525092.tar.bz2
mdhtml-ff6213c0f2ac184686c169fbc308178023525092.zip
+C project via https://github.com/odavep/CTemplate
I'll try implementing my current system with it's current features into C
-rw-r--r--.gitignore2
-rw-r--r--Converter/CMakeLists.txt29
-rw-r--r--Converter/src/main.c6
3 files changed, 37 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 267df00..88db746 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,5 @@
.idea
*.log
tmp/
+dist/
+.ccls-cache/
diff --git a/Converter/CMakeLists.txt b/Converter/CMakeLists.txt
new file mode 100644
index 0000000..1057424
--- /dev/null
+++ b/Converter/CMakeLists.txt
@@ -0,0 +1,29 @@
+## Metadata
+cmake_minimum_required(VERSION 3.10.2)
+
+set(THIS converter) # Name of project
+project(${THIS} C)
+
+set(CMAKE_C_COMPILER clang) # compiler
+
+set(CMAKE_C_STANDARD 11) # code standard
+SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
+
+enable_testing()
+
+## Variables for files
+file(GLOB_RECURSE HEADERS "includes/*.h")
+file(GLOB_RECURSE SRC "src/*.c")
+
+## Debug and release flags
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
+set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Werror -O0")
+
+## Executable recipes
+add_executable(${THIS} ${SRC} ${HEADERS})
+
+## SDL2 INCLUDE
+# find_package(SDL2 REQUIRED)
+# find_package(SDL2_image REQUIRED)
+# include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS})
+# target_link_libraries(${THIS} ${SDL2_LIBRARIES} ${SDL2_IMAGE_LIBRARIES})
diff --git a/Converter/src/main.c b/Converter/src/main.c
new file mode 100644
index 0000000..aed773b
--- /dev/null
+++ b/Converter/src/main.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hello, world!\n");
+ return 0;
+}