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})
# Export omath target for CMake find_package support, also under omath_component
install(EXPORT omathTargets
FILE omathTargets.cmake
install(EXPORT ${PROJECT_NAME}Targets
FILE ${PROJECT_NAME}Targets.cmake
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
{
/*
v1
|\
| \
a | \ hypot
| \
-----
v2 ----- v3
b
*/