mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 11:24:27 +02:00
feat: initial very dirty version of V2 framework
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user