From 234004570fc2a177cefabb9871b395368629de8f Mon Sep 17 00:00:00 2001 From: PreacherDHM Date: Sat, 25 Jan 2025 08:29:43 -0800 Subject: [PATCH] first --- .gitignore | 16 ++++++++++++++++ CMakeLists.txt | 27 +++++++++++++++++++++++++++ externals/CMakeLists.txt | 1 + includes/tart.h | 0 source/CMakeLists.txt | 5 +++++ source/tart.cpp | 0 testing/CMakeLists.txt | 8 ++++++++ testing/main.cpp | 4 ++++ 8 files changed, 61 insertions(+) create mode 100644 .gitignore create mode 100644 CMakeLists.txt create mode 100644 externals/CMakeLists.txt create mode 100644 includes/tart.h create mode 100644 source/CMakeLists.txt create mode 100644 source/tart.cpp create mode 100644 testing/CMakeLists.txt create mode 100644 testing/main.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7d0472f --- /dev/null +++ b/.gitignore @@ -0,0 +1,16 @@ +# ---> CMake +CMakeLists.txt.user +CMakeCache.txt +CMakeFiles +CMakeScripts +#Testing +Makefile +cmake_install.cmake +install_manifest.txt +compile_commands.json +CTestTestfile.cmake +_deps +build/ +bin/ +.cache/ +.ccls-cache/ diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..58c7064 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,27 @@ +cmake_minimum_required(VERSION 3.20.0) +project(Tart VERSION 0.1) +# CPP +set( CMAKE_CXX_STANDARD 11) +set( CMAKE_CXX_STANDARD_REQUIRED ON) +# C +set( CMAKE_C_STANDARD 11) +set( CMAKE_C_STANDARD_REQUIRED ON) + +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/libs) +set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin) + +set( CMAKE_COLOR_MAKEFILE ON) +set( CMAKE_COLOR_DIAGNOSTICS ON) + +set( CMAKE_EXPORT_COMPILE_COMMANDS ON) + +include(CTest) +enable_testing() + +# EXTERNALS +add_subdirectory(externals) +# PROJECT +add_subdirectory(source) +add_subdirectory(testing) + diff --git a/externals/CMakeLists.txt b/externals/CMakeLists.txt new file mode 100644 index 0000000..d3e2ada --- /dev/null +++ b/externals/CMakeLists.txt @@ -0,0 +1 @@ +add_subdirectory(Pickler) diff --git a/includes/tart.h b/includes/tart.h new file mode 100644 index 0000000..e69de29 diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt new file mode 100644 index 0000000..67c486e --- /dev/null +++ b/source/CMakeLists.txt @@ -0,0 +1,5 @@ +project(TartLib VERSION 0.1) +set(Lib_SOURCES + tart.cpp +) +add_library(${PROJECT_NAME} STATIC ${LIB_SOURCES}) diff --git a/source/tart.cpp b/source/tart.cpp new file mode 100644 index 0000000..e69de29 diff --git a/testing/CMakeLists.txt b/testing/CMakeLists.txt new file mode 100644 index 0000000..13c85dc --- /dev/null +++ b/testing/CMakeLists.txt @@ -0,0 +1,8 @@ +project(TartTest) +set( SOURCES + main.cpp +) +add_executable(${PROJECT_NAME} ${SOURCES}) +target_include_directory(${PROJECT_NAME} Pickler) + +add_test(${PROJECT_NAME} "${CMAKE_SOURCE_DIR}/bin/testing.exe") diff --git a/testing/main.cpp b/testing/main.cpp new file mode 100644 index 0000000..055a024 --- /dev/null +++ b/testing/main.cpp @@ -0,0 +1,4 @@ +int main (int argc, char *argv[]) { + + return 0; +}