mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
build: MP_UNITS_DEV_TIME_TRACE
CMake option added
This commit is contained in:
@ -24,6 +24,9 @@ add_library(glide_computer_lib-headers STATIC glide_computer_lib.cpp include/gli
|
||||
target_compile_features(glide_computer_lib-headers PUBLIC cxx_std_20)
|
||||
target_link_libraries(glide_computer_lib-headers PUBLIC mp-units::mp-units example_utils-headers)
|
||||
target_include_directories(glide_computer_lib-headers PUBLIC include)
|
||||
if(${projectPrefix}DEV_TIME_TRACE STREQUAL "HEADERS")
|
||||
target_compile_options(glide_computer_lib-headers PRIVATE "-ftime-trace")
|
||||
endif()
|
||||
|
||||
if(${projectPrefix}BUILD_CXX_MODULES)
|
||||
add_library(glide_computer_lib STATIC glide_computer_lib.cpp include/glide_computer_lib.h)
|
||||
@ -31,4 +34,8 @@ if(${projectPrefix}BUILD_CXX_MODULES)
|
||||
target_compile_definitions(glide_computer_lib PUBLIC ${projectPrefix}MODULES)
|
||||
target_link_libraries(glide_computer_lib PUBLIC mp-units::mp-units example_utils)
|
||||
target_include_directories(glide_computer_lib PUBLIC include)
|
||||
|
||||
if(${projectPrefix}DEV_TIME_TRACE STREQUAL "MODULES")
|
||||
target_compile_options(glide_computer_lib PRIVATE "-ftime-trace")
|
||||
endif()
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user