mirror of
https://github.com/orange-cpp/omath.git
synced 2026-02-13 07:03:25 +00:00
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:
@@ -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}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -7,11 +7,12 @@
|
|||||||
namespace omath
|
namespace omath
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
v1
|
||||||
|\
|
|\
|
||||||
| \
|
| \
|
||||||
a | \ hypot
|
a | \ hypot
|
||||||
| \
|
| \
|
||||||
-----
|
v2 ----- v3
|
||||||
b
|
b
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user