first
This commit is contained in:
16
.gitignore
vendored
Normal file
16
.gitignore
vendored
Normal 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
27
CMakeLists.txt
Normal 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
1
externals/CMakeLists.txt
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
add_subdirectory(Pickler)
|
||||||
0
includes/tart.h
Normal file
0
includes/tart.h
Normal file
5
source/CMakeLists.txt
Normal file
5
source/CMakeLists.txt
Normal 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
0
source/tart.cpp
Normal file
8
testing/CMakeLists.txt
Normal file
8
testing/CMakeLists.txt
Normal 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
4
testing/main.cpp
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
int main (int argc, char *argv[]) {
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user