This commit is contained in:
2025-01-25 08:29:43 -08:00
commit 234004570f
8 changed files with 61 additions and 0 deletions

16
.gitignore vendored Normal file
View File

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

27
CMakeLists.txt Normal file
View File

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

1
externals/CMakeLists.txt vendored Normal file
View File

@@ -0,0 +1 @@
add_subdirectory(Pickler)

0
includes/tart.h Normal file
View File

5
source/CMakeLists.txt Normal file
View File

@@ -0,0 +1,5 @@
project(TartLib VERSION 0.1)
set(Lib_SOURCES
tart.cpp
)
add_library(${PROJECT_NAME} STATIC ${LIB_SOURCES})

0
source/tart.cpp Normal file
View File

8
testing/CMakeLists.txt Normal file
View File

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

4
testing/main.cpp Normal file
View File

@@ -0,0 +1,4 @@
int main (int argc, char *argv[]) {
return 0;
}