mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 11:24:27 +02:00
Library updated to the latest cmake common tools
This commit is contained in:
@@ -27,19 +27,24 @@ project(units)
|
||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||
|
||||
# include common tools and workarounds
|
||||
include(common/cmake/tools)
|
||||
include(common/cmake/scripts)
|
||||
|
||||
# use Conan configuration if available
|
||||
conan_init(cmake)
|
||||
|
||||
# compilation options and flags used in a project development process
|
||||
include(common/cmake/compile_flags)
|
||||
# enable static analysis
|
||||
#enable_clang_tidy()
|
||||
#enable_iwyu()
|
||||
|
||||
# set restrictive compilation warnings
|
||||
set_warnings(TREAT_AS_ERRORS)
|
||||
|
||||
# add project code
|
||||
add_subdirectory(src)
|
||||
|
||||
# add unit tests
|
||||
add_subdirectory(test)
|
||||
|
||||
# add usage example
|
||||
add_subdirectory(example)
|
||||
|
||||
# add unit tests
|
||||
enable_testing()
|
||||
add_subdirectory(test)
|
||||
|
Reference in New Issue
Block a user