mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
build: CMake cleanup
This commit is contained in:
@ -21,7 +21,8 @@
|
|||||||
# SOFTWARE.
|
# SOFTWARE.
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.12)
|
cmake_minimum_required(VERSION 3.12)
|
||||||
project(mp-units)
|
project(mp-units
|
||||||
|
LANGUAGES CXX)
|
||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
|
||||||
@ -41,12 +42,12 @@ add_subdirectory(src)
|
|||||||
# set restrictive compilation warnings
|
# set restrictive compilation warnings
|
||||||
set_warnings(mp-units)
|
set_warnings(mp-units)
|
||||||
|
|
||||||
# add unit tests
|
|
||||||
enable_testing()
|
|
||||||
add_subdirectory(test)
|
|
||||||
|
|
||||||
# add usage example
|
# add usage example
|
||||||
add_subdirectory(example)
|
add_subdirectory(example)
|
||||||
|
|
||||||
# generate project documentation
|
# generate project documentation
|
||||||
add_subdirectory(docs)
|
add_subdirectory(docs)
|
||||||
|
|
||||||
|
# add unit tests
|
||||||
|
enable_testing()
|
||||||
|
add_subdirectory(test)
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
|
|
||||||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")
|
||||||
|
|
||||||
include(conan)
|
|
||||||
include(install)
|
include(install)
|
||||||
include(static_analysis)
|
include(static_analysis)
|
||||||
include(warnings)
|
include(warnings)
|
||||||
|
@ -41,20 +41,6 @@ find_package(Microsoft.GSL CONFIG REQUIRED)
|
|||||||
|
|
||||||
# library definition
|
# library definition
|
||||||
add_library(mp-units INTERFACE)
|
add_library(mp-units INTERFACE)
|
||||||
#target_sources(mp-units INTERFACE
|
|
||||||
# include/units/dimension.h
|
|
||||||
# include/units/quantity.h
|
|
||||||
# include/units/unit.h
|
|
||||||
#
|
|
||||||
# include/units/bits/tools.h
|
|
||||||
# include/units/bits/type_list.h
|
|
||||||
#
|
|
||||||
# include/units/si/base_dimensions.h
|
|
||||||
# include/units/si/frequency.h
|
|
||||||
# include/units/si/length.h
|
|
||||||
# include/units/si/time.h
|
|
||||||
# include/units/si/speed.h
|
|
||||||
#)
|
|
||||||
target_compile_features(mp-units INTERFACE cxx_std_20)
|
target_compile_features(mp-units INTERFACE cxx_std_20)
|
||||||
target_link_libraries(mp-units
|
target_link_libraries(mp-units
|
||||||
INTERFACE
|
INTERFACE
|
||||||
|
Reference in New Issue
Block a user