init
This commit is contained in:
parent
fdae60012c
commit
f27b99f929
7 changed files with 67 additions and 0 deletions
5
.clang-format
Normal file
5
.clang-format
Normal file
|
@ -0,0 +1,5 @@
|
|||
BasedOnStyle: LLVM
|
||||
BreakBeforeBraces: Allman
|
||||
AccessModifierOffset: -4
|
||||
IndentWidth: 4
|
||||
AlwaysBreakTemplateDeclarations: Yes
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
build/
|
||||
.cache/
|
||||
CMakeUserPresets.json
|
22
CMakeLists.txt
Normal file
22
CMakeLists.txt
Normal file
|
@ -0,0 +1,22 @@
|
|||
cmake_minimum_required(VERSION 3.22.0)
|
||||
|
||||
set(PROJECT_NAME zecsy)
|
||||
|
||||
project(${PROJECT_NAME})
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
find_package(nlohmann_json)
|
||||
|
||||
add_library(zecsy STATIC zecsy.hpp)
|
||||
target_link_libraries(zecsy ${PROJECT_DEPS} nlohmann_json::nlohmann_json)
|
||||
set_target_properties(zecsy PROPERTIES LINKER_LANGUAGE CXX)
|
||||
|
||||
#######################################################
|
||||
find_package(Catch2 REQUIRED)
|
||||
file(GLOB TEST_SRC ./tests/*.cpp ./tests/*.hpp ./tests/*.h)
|
||||
add_executable(tests ${TEST_SRC})
|
||||
target_link_libraries(tests PRIVATE Catch2::Catch2WithMain zecsy)
|
||||
|
||||
include(CTest)
|
||||
include(Catch)
|
||||
catch_discover_tests(tests)
|
18
clang_profile
Normal file
18
clang_profile
Normal file
|
@ -0,0 +1,18 @@
|
|||
[settings]
|
||||
os=Windows
|
||||
arch=x86_64
|
||||
build_type=Debug
|
||||
compiler=clang
|
||||
compiler.version=19
|
||||
compiler.cppstd=gnu20
|
||||
compiler.runtime=static
|
||||
compiler.runtime_type=Debug
|
||||
compiler.runtime_version=v143
|
||||
|
||||
[buildenv]
|
||||
CC=clang
|
||||
CXX=clang
|
||||
RC=clang
|
||||
|
||||
[conf]
|
||||
tools.cmake.cmaketoolchain:generator=Ninja
|
10
conanfile.txt
Normal file
10
conanfile.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
[requires]
|
||||
nlohmann_json/3.11.3
|
||||
catch2/3.8.0
|
||||
|
||||
[generators]
|
||||
CMakeDeps
|
||||
CMakeToolchain
|
||||
|
||||
[layout]
|
||||
cmake_layout
|
7
tests/zecsy.cpp
Normal file
7
tests/zecsy.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch_all.hpp>
|
||||
|
||||
TEST_CASE("dumb")
|
||||
{
|
||||
REQUIRE(true);
|
||||
}
|
2
zecsy.hpp
Normal file
2
zecsy.hpp
Normal file
|
@ -0,0 +1,2 @@
|
|||
//oh hi
|
||||
int foo() {}
|
Loading…
Reference in a new issue