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