From 6627b0a491023d889ccb2e7211d12ed7a383845d Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 2 Jun 2023 13:52:00 +0200 Subject: [PATCH] refactor: `glide_computer` and `storage_tank` examples renamed --- example/CMakeLists.txt | 4 ++-- example/{glide_computer_example.cpp => glide_computer.cpp} | 0 example/glide_computer/CMakeLists.txt | 6 +++--- example/{storage_tank_example.cpp => storage_tank.cpp} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename example/{glide_computer_example.cpp => glide_computer.cpp} (100%) rename example/{storage_tank_example.cpp => storage_tank.cpp} (100%) diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 2642a80c..5741fc67 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -34,7 +34,6 @@ function(add_example target) endfunction() add_example(avg_speed mp-units::core-io mp-units::si mp-units::cgs mp-units::usc) -add_example(storage_tank_example mp-units::core-fmt mp-units::si) add_example(capacitor_time_curve mp-units::core-io mp-units::si mp-units::utility) add_example( clcpp_response @@ -50,10 +49,11 @@ add_example( add_example(conversion_factor mp-units::core-fmt mp-units::core-io mp-units::si) add_example(currency mp-units::core-io) add_example(foot_pound_second mp-units::core-fmt mp-units::international mp-units::imperial) -add_example(glide_computer_example mp-units::core-fmt mp-units::international mp-units::utility glide_computer) +add_example(glide_computer mp-units::core-fmt mp-units::international mp-units::utility glide_computer_lib) add_example(hello_units mp-units::core-fmt mp-units::core-io mp-units::si mp-units::usc) add_example(measurement mp-units::core-io mp-units::si) add_example(si_constants mp-units::core-fmt mp-units::si) +add_example(storage_tank mp-units::core-fmt mp-units::si) add_example( strong_angular_quantities mp-units::core-fmt mp-units::core-io mp-units::si mp-units::isq_angle mp-units::utility ) diff --git a/example/glide_computer_example.cpp b/example/glide_computer.cpp similarity index 100% rename from example/glide_computer_example.cpp rename to example/glide_computer.cpp diff --git a/example/glide_computer/CMakeLists.txt b/example/glide_computer/CMakeLists.txt index d9f28018..9587ef37 100644 --- a/example/glide_computer/CMakeLists.txt +++ b/example/glide_computer/CMakeLists.txt @@ -22,6 +22,6 @@ cmake_minimum_required(VERSION 3.2) -add_library(glide_computer STATIC glide_computer.cpp include/glide_computer.h) -target_link_libraries(glide_computer PRIVATE mp-units::core-fmt PUBLIC mp-units::si mp-units::utility example_utils) -target_include_directories(glide_computer PUBLIC include) +add_library(glide_computer_lib STATIC glide_computer.cpp include/glide_computer.h) +target_link_libraries(glide_computer_lib PRIVATE mp-units::core-fmt PUBLIC mp-units::si mp-units::utility example_utils) +target_include_directories(glide_computer_lib PUBLIC include) diff --git a/example/storage_tank_example.cpp b/example/storage_tank.cpp similarity index 100% rename from example/storage_tank_example.cpp rename to example/storage_tank.cpp