diff --git a/docs/examples/custom_systems.rst b/docs/examples/custom_systems.rst index e93e0c4b..a4e93583 100644 --- a/docs/examples/custom_systems.rst +++ b/docs/examples/custom_systems.rst @@ -1,7 +1,7 @@ custom_systems ============== -.. literalinclude:: ../../example/references/custom_systems.cpp +.. literalinclude:: ../../example/custom_systems.cpp :caption: custom_systems.cpp :start-at: #include :linenos: diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 36ac1959..b2f477b9 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -22,9 +22,12 @@ cmake_minimum_required(VERSION 3.2) +add_executable(hello_units hello_units.cpp) +target_link_libraries(hello_units PRIVATE mp-units::core-fmt mp-units::core-io mp-units::si mp-units::si-international) + +add_executable(custom_systems custom_systems.cpp) +target_link_libraries(custom_systems PRIVATE mp-units::core-io mp-units::si) + add_subdirectory(alternative_namespaces) add_subdirectory(literals) add_subdirectory(references) - -add_executable(hello_units hello_units.cpp) -target_link_libraries(hello_units PRIVATE mp-units::core-fmt mp-units::core-io mp-units::si mp-units::si-international) diff --git a/example/references/custom_systems.cpp b/example/custom_systems.cpp similarity index 100% rename from example/references/custom_systems.cpp rename to example/custom_systems.cpp diff --git a/example/literals/CMakeLists.txt b/example/literals/CMakeLists.txt index 380a0b2a..5f364b00 100644 --- a/example/literals/CMakeLists.txt +++ b/example/literals/CMakeLists.txt @@ -36,7 +36,6 @@ add_example(box_example mp-units::core-fmt mp-units::si) add_example(capacitor_time_curve mp-units::core-io mp-units::si) add_example(clcpp_response mp-units::core-fmt mp-units::core-io mp-units::si mp-units::si-iau mp-units::si-imperial mp-units::si-international mp-units::si-typographic mp-units::si-us) add_example(conversion_factor mp-units::core-fmt mp-units::core-io mp-units::si) -add_example(custom_systems mp-units::core-io mp-units::si) add_example(experimental_angle mp-units::core-fmt mp-units::core-io mp-units::si) add_example(foot_pound_second mp-units::core-fmt mp-units::si-fps) add_example(kalman_filter-alpha_beta_filter_example2 mp-units::core-fmt mp-units::si) diff --git a/example/references/CMakeLists.txt b/example/references/CMakeLists.txt index 8a4d69bf..a0117447 100644 --- a/example/references/CMakeLists.txt +++ b/example/references/CMakeLists.txt @@ -36,7 +36,6 @@ add_example(box_example mp-units::core-fmt mp-units::si) add_example(capacitor_time_curve mp-units::core-io mp-units::si) add_example(clcpp_response mp-units::core-fmt mp-units::core-io mp-units::si mp-units::si-iau mp-units::si-imperial mp-units::si-international mp-units::si-typographic mp-units::si-us) add_example(conversion_factor mp-units::core-fmt mp-units::core-io mp-units::si) -add_example(custom_systems mp-units::core-io mp-units::si) add_example(experimental_angle mp-units::core-fmt mp-units::core-io mp-units::si) add_example(foot_pound_second mp-units::core-fmt mp-units::si-fps) add_example(kalman_filter-alpha_beta_filter_example2 mp-units::core-fmt mp-units::si)