feat: initial very dirty version of V2 framework

This commit is contained in:
Mateusz Pusz
2022-09-08 19:11:45 +02:00
parent 6bccc57800
commit daf97a3a86
22 changed files with 1829 additions and 996 deletions

View File

@@ -44,6 +44,7 @@ add_compile_definitions($<$<CONFIG:Debug>:gsl_CONFIG_CONTRACT_CHECKING_AUDIT>)
# enable include-what-you-use
option(${projectPrefix}IWYU "Enables include-what-you-use" OFF)
if(${projectPrefix}IWYU)
include(include-what-you-use)
enable_iwyu(
@@ -52,12 +53,13 @@ if(${projectPrefix}IWYU)
MAX_LINE_LENGTH 120
NO_COMMENTS
)
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(${projectPrefix}AS_SYSTEM_HEADERS ON)
endif()
endif()
#enable_clang_tidy()
# enable_clang_tidy()
# add project code
add_subdirectory(src)
@@ -66,11 +68,12 @@ add_subdirectory(src)
add_subdirectory(example)
# generate project documentation
add_subdirectory(docs)
# add_subdirectory(docs)
# add unit tests
enable_testing()
add_subdirectory(test)
# add_subdirectory(test)
# tests for standalone headers
include(TestPublicHeaders)