Updates CMake export target and namespace.

Updates the CMake export target and namespace to use the project name,
improving consistency and avoiding naming conflicts.

Adds a simple diagram to the triangle header file.
This commit is contained in:
2025-07-06 11:14:46 +03:00
parent 65541fa2c7
commit 66258f0f6d
2 changed files with 5 additions and 4 deletions

View File

@@ -117,10 +117,10 @@ install(TARGETS ${PROJECT_NAME}
install(DIRECTORY include/ DESTINATION include COMPONENT ${PROJECT_NAME}) install(DIRECTORY include/ DESTINATION include COMPONENT ${PROJECT_NAME})
# Export omath target for CMake find_package support, also under omath_component # Export omath target for CMake find_package support, also under omath_component
install(EXPORT omathTargets install(EXPORT ${PROJECT_NAME}Targets
FILE omathTargets.cmake FILE ${PROJECT_NAME}Targets.cmake
NAMESPACE ${PROJECT_NAME}:: NAMESPACE ${PROJECT_NAME}::
DESTINATION lib/cmake/omath COMPONENT ${PROJECT_NAME} DESTINATION lib/cmake/${PROJECT_NAME} COMPONENT ${PROJECT_NAME}
) )

View File

@@ -7,11 +7,12 @@
namespace omath namespace omath
{ {
/* /*
v1
|\ |\
| \ | \
a | \ hypot a | \ hypot
| \ | \
----- v2 ----- v3
b b
*/ */